| 29 | | - ''tbw'' |
| | 29 | The hierarchy widget consists of two parts: the button and the hierarchical menu. |
| | 30 | |
| | 31 | The style of the button is controlled by the global jQuery UI theme (ui-widget and related CSS classes). |
| | 32 | |
| | 33 | The hierarchical menu has its own CSS theme, the default theme is located in static/styles/jstree/default. Custom themes can be derived from this, and then configured via a deployment setting: |
| | 34 | |
| | 35 | {{{#!python |
| | 36 | # Set a theme relative to the static/styles/jstree folder |
| | 37 | settings.ui.hierarchy_theme = "default" |
| | 38 | }}} |
| | 39 | |
| | 40 | To hold the hierarchy theme e.g. in a template, specify a pathname relative to the application folder instead: |
| | 41 | |
| | 42 | {{{#!python |
| | 43 | # Set a theme relative to the application folder |
| | 44 | settings.ui.hierarchy_theme = "private/templates/TEMPLATE/theme/hierarchy" |
| | 45 | }}} |