From 4db9f0342d162e44eb97693143413cf72738cb91 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sun, 10 Nov 2024 00:31:49 -0500 Subject: [PATCH] chore: call changeFormEditorOption() on valid composite editor --- webpack-bs5-demo/src/examples/slickgrid/example30.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webpack-bs5-demo/src/examples/slickgrid/example30.ts b/webpack-bs5-demo/src/examples/slickgrid/example30.ts index 976c870..4dde769 100644 --- a/webpack-bs5-demo/src/examples/slickgrid/example30.ts +++ b/webpack-bs5-demo/src/examples/slickgrid/example30.ts @@ -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 } */ }