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 3b72dd0 commit 715c91b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/examples/slickgrid/Example30.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -600,11 +600,13 @@ export default class Example30 extends React.Component<Props, State> {
// 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 715c91b

Please sign in to comment.