Show Label on Select in table
Show Label on Select in table
jesblanc
Posts: 2Questions: 1Answers: 0
Hi.
I use Editor with inline change.
In table you can see only the value.
On click-> Select where you can see the label.
Now I want to see also the label in the normal table view.
How can I do this?
Thanks
This discussion has been closed.
Answers
The label is hidden for inline editing by Editor's default CSS since it disrupts the flow of the content in the table. However, if you do want it to appear, add the following CSS:
Allan
Thanks for you soon answer ! but may be i don't explained well my issue.
When you uses a field type "select" the options have a array with two attribute like this options: [{ label: "Company 1", value: 1 }] , when you add or update the field it show the label but when this new data is adding to the table show the value.
I need save in database the value("1") but show in de datatable the label ("Company 1")
Have a look at this example which is doing exactly what you describe. Editor is editing the value, while DataTables is showing the label.
Allan