avallete / ag-grid-autocomplete-editor

Quick implementation of autocompletion into ag-Grid cell using autocompleter package.
MIT License
49 stars 25 forks source link

Many Editors One Column #100

Closed oedemis closed 3 years ago

oedemis commented 3 years ago

According to Docs https://www.ag-grid.com/vue-grid/cell-editing/ we can provide different celleditors to different cells at the same column. How can we achive this ?

But actually this is not working ?

   cellEditorSelector: (params) => {
          if (params.data.typ === "ObjectTypeA") {
            return {
              component: "autocompleteSelectCellEditor",
              params: {
                cellEditorParams: {
                  required: true,
                  selectData: this.selectData,
                  placeholder: "Select an option",
                  autocomplete: {
                    strict: false,
                    autoselectfirst: false,
                  },
                },
              },
            };
          }
          return null;
        },
oedemis commented 3 years ago

solved by registerting it to gridOptions