Load Editor table with hidden column

Load Editor table with hidden column

welleozean77welleozean77 Posts: 7Questions: 3Answers: 0
edited January 2021 in Free community support

This should be a simple one...
I am able to manually toggle (show/hide) single columns in a Editor table. However, I am not able to hide columns automatically after the table has been initialized.

With
editor.field( 'columnName' ).hidden();
I can prevent the filed to appear in the form, the column appears in the table the same.

What should I do?

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Yep, the form is controlled by the Editor library, and the table by DataTables, so two different APIs.

    To hide the column in the table, use column().visible().

    To hide the column in the form, use hide(),

    Colin

This discussion has been closed.