Chips Added by Comma Separator


Topic: Chips Added by Comma Separator

JTH pro premium priority asked 2 years ago

Hello,

Is there a way to enter multiple chip inputs by using a comma (or any other quotation) tactic?

Currently, a user has to press enter after every input. In our example, this is not practical as a user wants to bring a list to convert into chips from a spreadsheet. Currently, when they copy-paste into the chips-placeholder it just creates one long chip.

I'm using a simple div for the input.

<div
            id="titles"
            class="chips chips-placeholder" </div>

mlazaru staff answered 2 years ago

Hi,

For now, the only option to add multiple chips is a initialValues option, but it doesn't work after component's initialization.

If you think that such an option would improve MDB, feel free to add feature request.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.1.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Windwos
  • Provided sample code: No
  • Provided link: No
Tags