Show Label on Select in table

Show Label on Select in table

jesblancjesblanc 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

Answers

  • allanallan Posts: 63,831Questions: 1Answers: 10,518 Site admin

    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:

    div.DTE_Inline div.DTE_Inline_Field div.DTE_Field>label, div.DTE_Inline div.DTE_Inline_Buttons div.DTE_Field>label {
        display: block;
    }
    

    Allan

  • jesblancjesblanc Posts: 2Questions: 1Answers: 0

    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")

  • allanallan Posts: 63,831Questions: 1Answers: 10,518 Site admin

    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

This discussion has been closed.