JsonSchema:SchemaBuilder/FancyTreeOptions
JsonSchema:SchemaBuilder/FancyTreeOptions
From Wikisphere
Jump to navigation
Jump to search
| $schema | "http://json-schema.org/draft-07/schema#" |
|---|
| $id | "https://wikisphere.org/wiki/JsonSchema:FancyTreeOptions" |
|---|
| title | "Fancytree Options" |
|---|
| description | "Configuration options for the Fancytree jQuery widget." |
|---|
| type | "object" |
|---|
| additionalProperties | false |
|---|
| x-default-properties | | "selectMode" |
| "source-selector" |
| "dataOutput" |
|
|---|
| properties | | activeVisible | | type | "boolean" |
|---|
| default | true |
|---|
| description | "Make sure active nodes are visible (expanded)." |
|---|
|
|---|
| aria | | type | "boolean" |
|---|
| default | true |
|---|
| description | "Enable WAI-ARIA support." |
|---|
|
|---|
| autoActivate | | type | "boolean" |
|---|
| default | true |
|---|
| description | "Automatically activate a node when it is focused using the keyboard." |
|---|
|
|---|
| autoCollapse | | type | "boolean" |
|---|
| default | false |
|---|
| description | "Automatically collapse all siblings when a node is expanded." |
|---|
|
|---|
| autoScroll | | type | "boolean" |
|---|
| default | false |
|---|
| description | "Automatically scroll nodes into the visible area." |
|---|
|
|---|
| clickFolderMode | | type | "integer" |
|---|
| enum | |
|---|
| default | 4 |
|---|
| description | "Behavior when clicking a folder node: 1 = activate, 2 = expand, 3 = activate and expand, 4 = activate (double-click expands)." |
|---|
|
|---|
| checkbox | | type | "boolean" |
|---|
| default | false |
|---|
| description | "Show checkboxes." |
|---|
|
|---|
| checkboxAutoHide | | type | "boolean" |
|---|
| default | false |
|---|
| description | "Display checkboxes on hover only." |
|---|
|
|---|
| debugLevel | | type | "integer" |
|---|
| enum | |
|---|
| default | 4 |
|---|
| description | "Debug logging level: 0 = quiet, 1 = errors, 2 = warnings, 3 = infos, 4 = debug." |
|---|
|
|---|
| disabled | | type | "boolean" |
|---|
| default | false |
|---|
| description | "Disable the control." |
|---|
|
|---|
| focusOnSelect | | type | "boolean" |
|---|
| default | false |
|---|
| description | "Set focus when a node is checked by a mouse click." |
|---|
|
|---|
| escapeTitles | | type | "boolean" |
|---|
| default | false |
|---|
| description | "Escape `node.title` content for display." |
|---|
|
|---|
| generateIds | | type | "boolean" |
|---|
| default | false |
|---|
| description | "Generate id attributes like `<span id='fancytree-id-KEY'>`." |
|---|
|
|---|
| idPrefix | | type | "string" |
|---|
| default | "ft_" |
|---|
| description | "Prefix used to generate node ids, e.g. `<span id='fancytree-id-KEY'>`." |
|---|
|
|---|
| icon | | type | "boolean" |
|---|
| default | true |
|---|
| description | "Display node icons." |
|---|
|
|---|
| keyboard | | type | "boolean" |
|---|
| default | true |
|---|
| description | "Support keyboard navigation." |
|---|
|
|---|
| keyPathSeparator | | type | "string" |
|---|
| default | "/" |
|---|
| description | "Separator used by `node.getKeyPath()` and `tree.loadKeyPath()`." |
|---|
|
|---|
| minExpandLevel | | type | "integer" |
|---|
| minimum | 1 |
|---|
| default | 1 |
|---|
| description | "Minimum expansion level. 1 = the root node is not collapsible." |
|---|
|
|---|
| quicksearch | | type | "boolean" |
|---|
| default | false |
|---|
| description | "Navigate to the next node by typing the first letters." |
|---|
|
|---|
| rtl | | type | "boolean" |
|---|
| default | false |
|---|
| description | "Enable RTL (right-to-left) mode." |
|---|
|
|---|
| selectMode | | type | "integer" |
|---|
| enum | |
|---|
| x-enum-titles | | "single" |
| "multi" |
| "multi-hierarchical" |
|
|---|
| default | 1 |
|---|
|
|---|
| tabindex | | type | "string" |
|---|
| default | "0" |
|---|
| description | "Tabindex for the tree. The whole tree behaves as one single control." |
|---|
|
|---|
| titlesTabbable | | type | "boolean" |
|---|
| default | false |
|---|
| description | "Node titles can receive keyboard focus." |
|---|
|
|---|
| tooltip | | type | "boolean" |
|---|
| default | false |
|---|
| description | "Use the node title as a tooltip. A callback could also be specified." |
|---|
|
|---|
| source-selector | | title | "Select source" |
|---|
| type | "string" |
|---|
| enum | | "wiki article" |
| "inline" |
| "url" |
|
|---|
|
|---|
| sourceArticle | | title | "wiki article" |
|---|
| type | "string" |
|---|
| x-format | "pagename" |
|---|
| x-input | "mw.widgets.TitleInputWidget" |
|---|
| description | "wiki article with json content model with content compatible as FancyTree data source" |
|---|
| x-dependency | | source-selector | "wiki article" |
|---|
|
|---|
|
|---|
| source | | type | "string" |
|---|
| x-compact | true |
|---|
| x-format | "json" |
|---|
| x-input | "jsoneditor" |
|---|
| description | "inline data" |
|---|
| x-dependency | |
|---|
|
|---|
| sourceUrl | | type | "string" |
|---|
| x-compact | false |
|---|
| x-no-title | true |
|---|
| format | "url" |
|---|
| description | "direct url (the origin must support [https://en.wikipedia.org/wiki/Cross-origin_resource_sharing CORS])" |
|---|
| x-description-format | "wikitext" |
|---|
| x-dependency | |
|---|
|
|---|
| dataOutput | | type | "string" |
|---|
| title | "data output" |
|---|
| format | "url" |
|---|
| description | "data output. Attention, if data is organized by keys, if a unique key is not assigned to each node, they will be autogenerated" |
|---|
| enum | | "concatenated-titles" |
| "non-concatenated-titles" |
| "keys" |
|
|---|
| x-enum-titles | | "concatenated titles" |
| "non-concatenated titles (must be unique)" |
| "by keys" |
|
|---|
|
|---|
|
|---|