Skip to content

Commit

Permalink
chore: call changeFormEditorOption() on valid composite editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Nov 10, 2024
1 parent bc261c2 commit 4db9f03
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions webpack-bs5-demo/src/examples/slickgrid/example30.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,11 +582,13 @@ export class Example30 {
// this.compositeEditorInstance.changeFormInputValue('cost', 9999.99, true);
}

// you can also change some editor options (not all Editors supports this functionality, so far only these Editors AutoComplete, Date MultipleSelect & SingleSelect)
// you can also change some editor options
// not all Editors supports this functionality, so far only these Editors are supported are: Date, Single/Multiple Select, Slider
/*
if (columnDef.id === 'completed') {
this.compositeEditorInstance.changeFormEditorOption('percentComplete', 'filter', formValues.completed);
this.compositeEditorInstance.changeFormEditorOption('product', 'minLength', 3);
this.compositeEditorInstance.changeFormEditorOption('complexity', 'filter', true); // multiple-select dropdown editor
this.compositeEditorInstance.changeFormEditorOption('percentComplete', 'hideSliderNumber', formValues['completed']); // slider editor
this.compositeEditorInstance.changeFormEditorOption('finish', 'range', { min: 'today' }); // calendar picker, change minDate to today
}
*/
}
Expand Down

0 comments on commit 4db9f03

Please sign in to comment.