Initializing tags with id


Topic: Initializing tags with id

jouvrard pro asked 5 years ago

Hello,

I'd like to initialize some tags with id for each.I tested this:

$('.chips-placeholder').materialChip({
            placeholder: 'Nouveau tag',
            secondaryPlaceholder: '+ Entrée pour valider',
            data: [{
                tag: 'Tag 1',
                id: 1
            }, {
                tag: 'Tag 2',
                id: 2
            }, {
                tag: 'Tag 3',
                id: 3
            }]
        });

But with no effect: the tags are present, but without any ID.Any solution?

Thanks!

Jerome

EDIT> I tested with the "image" attribute and it work for it. The problem is just for the "id" attribute.


Grzegorz Bujański staff commented 5 years ago

Hi. Sorry but this is not supported at this moment. I add this to ours TO_DO list


jouvrard pro commented 5 years ago

Ok. I thought it was ok because in the documentation the chip data object show the "id" parameter.


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.10.1
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No
Tags