(chipListComponent, value)
| 88 | } |
| 89 | |
| 90 | export function setChipListValue(chipListComponent, value) { |
| 91 | const chipList = M.Chips.getInstance($(chipListComponent.$el).find('.chips').get(0)); |
| 92 | while (chipList.chipsData.length > 0) { |
| 93 | chipList.deleteChip(0); |
| 94 | } |
| 95 | for (const valueElement of value) { |
| 96 | chipList.addChip({'tag': valueElement}); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | export function createVue(component, properties, store = null, vue = null) { |
| 101 | document.body.insertAdjacentHTML('afterbegin', '<div id="top-level-element"></div>'); |