Giter Site home page Giter Site logo

Comments (2)

markhm avatar markhm commented on August 16, 2024 1

Hi @gatanaso,

Many thanks for going above and beyond on your answer. It is definitely still on time and I will be able to use this in my solution. ๐Ÿ‘๐Ÿป๐Ÿ™๐Ÿป

from multiselect-combo-box-flow.

gatanaso avatar gatanaso commented on August 16, 2024

Hi @markhm,

Thanks for opening this issue. Hopefully this answer does not come too late :)

The MultiselectComboBox has stylable parts, so you can adjust the styles however you see fit for you application. For example, to increase the spacing between the tokens (i.e. affect the input field styles) you need to target the multiselect-combo-box-input component:

  1. Create a new file under frontend/styles called multiselect-combo-box-input-styles.css
  2. In that file add the following code:
[part="token"] + [part="token"] {
    margin-left: 10px; // or any other value
}
  1. Apply the new style to your app by adding the following annotation:
@Route("")
@CssImport(value = "./styles/multiselect-combo-box-input-styles.css", themeFor = "multiselect-combo-box-input")
public class MyAwesomeApp extends VerticalLayout {.....}

The above code for example will add more spacing between adjacent tokens, but you can also adjust any of the other parts available in the web component.

Hope this helps,
Goran

from multiselect-combo-box-flow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.