Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
developers:plugin_listswitch [2021/04/10 18:17] pdsci-admin created |
developers:plugin_listswitch [2021/04/10 22:02] (current) pdsci-admin [List Switch: How to manage Backend Lists a little more convenient] |
||
---|---|---|---|
Line 16: | Line 16: | ||
<WRAP clear /> | <WRAP clear /> | ||
\\ | \\ | ||
+ | Anyhow there is a downside for this plugin, because the Builder Plugin does not allow custom defined column types (unlike form field types). So it is necessary to use an editor e.g. like the one from the [[: | ||
+ | Here is an example with the built in switch and the inetis-list-switch.\\ | ||
+ | **Standard switch (before)** | ||
+ | <sxh> | ||
+ | columns: | ||
+ | id: | ||
+ | label: ID | ||
+ | type: number | ||
+ | sortable: true | ||
+ | title: | ||
+ | label: Title | ||
+ | type: text | ||
+ | searchable: true | ||
+ | sortable: true | ||
+ | visible: | ||
+ | label: Visible | ||
+ | type: switch | ||
+ | </ | ||
+ | |||
+ | **List Switch Plugin (after)** | ||
+ | <sxh> | ||
+ | columns: | ||
+ | id: | ||
+ | label: ID | ||
+ | type: number | ||
+ | sortable: true | ||
+ | title: | ||
+ | label: Title | ||
+ | type: text | ||
+ | searchable: true | ||
+ | sortable: true | ||
+ | visible: | ||
+ | label: Visible | ||
+ | type: inetis-list-switch | ||
+ | icon: true | ||
+ | </ | ||
+ | |||
+ | The //icon: true// setting shows a hooklet for //on// and a ' | ||
+ | |||
+ | If neither a hooklet/x or yes/no fits the requirements, | ||
+ | <sxh> | ||
+ | columns: | ||
+ | id: | ||
+ | label: ID | ||
+ | type: number | ||
+ | sortable: true | ||
+ | title: | ||
+ | label: Title | ||
+ | type: text | ||
+ | searchable: true | ||
+ | sortable: true | ||
+ | visible: | ||
+ | label: Visible | ||
+ | type: inetis-list-switch | ||
+ | icon: false | ||
+ | textTrue: ' | ||
+ | textFalse: ' | ||
+ | </ |