In this lesson we will learn about the attributes related to list elements, which are used to customize the display of each column.
This is a very useful attribute which makes it easy to display list columns as desired. Using this attribute gives the end user an option to select the required columns to be displayed on the page. You just need to specify the display mode and M# generates the switching functionality.
Selecting this mode sets this column as un-selectable and the user cannot select / un-select this column. The column with this mode is always displayed.
Selecting this mode also sets this column as un-selectable and the user cannot select / un-select this column. The column with this mode is never displayed.
The column is set as selectable and is not displayed when the page loads. You have to select this column from the UI button in order to render this column.
After setting modes, if we view the page we will see that only one column is visible and a new link “Select Fields” is added on top of the list, which displays the selectable columns.
M# stores the column preference in cookie which is read during the initialization of the list module and is updated when user changes the preference by selecting different columns.