Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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

  • ForumUser: 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