Posted 5 March 2021, 2:34 am EST
Hi,
I am using wijmo listbox with typescript code. I tried to ways to add checkboxes but not able to add checkboxes.
How can I add checkboxes in listbox.
First way:
<wj-list-box #ListData [itemsSource]=“name” (initialized)=“initListBox(ListData)” [checkedMemberPath]=“‘recordData’”
(selectedIndexChanged)=“displayListBoxValueInTextField(ListData)”>
{{item}}
Second Way:
private _showCheckboxes = false;
get showCheckboxes() {
// return this._showCheckboxes;
// }
// set showCheckboxes(value: boolean) {
// if (this._showCheckboxes !== value) {
// this._showCheckboxes = value;
// this.ListData.checkedMemberPath = value ? ‘checked’ : ‘’;
// }
// }
How can I add checkboxes.
Thank you.
Regards,
Nivisha