TableEditor Plugin


Topic: TableEditor Plugin

doweb pro premium priority asked 2 years ago

Expected behavior

I would expect to be able to specify key value pairs for options of the table editor element

Actual behavior

I am only able to supply a one dimensional string array. This is an issue for actually editing data in the table, as they would most likely be supplied from a datasource where i only need the id of the selected option and not the text, and then let the dropdown element take care of selecting the active option based on value. When changing the option, i would also like to have the event returning the value and not the label, as that is not necessarily unique.

Resources (screenshots, code snippets etc.)

const column = [{
            width: 250,
            sort: false,
            defaultValue: false,
            label: "Konsulent type",
            options: ["Type 1", "Type 2"],
            inputType: "select",
            field: "reason",
          }]; 

This is how i would like it to be specified:

 const column = [{
            width: 250,
            sort: false,
            defaultValue: false,
            label: "Konsulent type",
            options: [{val: 0, label: "Type 1"}, {val: 1, label: "Type 2"}],
            inputType: "select",
            field: "reason",
          }]; 

Wojciech Staniszewski staff commented 2 years ago

We will add it in the next release. Thanks for reporting!


nowpc2 pro premium priority commented 2 years ago

Will this be added soon?


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: -
  • Device:
  • Browser:
  • OS:
  • Provided sample code: No
  • Provided link: No