Posted 12 March 2018, 11:46 pm EST
I have a MultiSelect component set up in Vue2 and TypeScript, and I’m trying to customize the list items via the formatItem function, but no matter what I do, it never gets invoked.
<wj-multi-select placeholder="Please select an item"
headerFormat="{count:n0} items selected"
:format-item="formatListItem"
:items-source="itemCodes"
:checkedItemsChanged="itemCodesChanged"
:display-member-path="'Name'"
:selected-value-path="'CodeId'"/>
methods: {
formatListItem(s, e): void {
console.log("item formatter", s, e);
},
I searched the forum, looked at the Vue examples and googled for about 2 hours but I just can’t get it to work.