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"
additionalPropertiesfalse
x-default-properties
"selectMode"
"source-selector"
"dataOutput"
properties
activeVisible
type"boolean"
defaulttrue
description"Make sure active nodes are visible (expanded)."
aria
type"boolean"
defaulttrue
description"Enable WAI-ARIA support."
autoActivate
type"boolean"
defaulttrue
description"Automatically activate a node when it is focused using the keyboard."
autoCollapse
type"boolean"
defaultfalse
description"Automatically collapse all siblings when a node is expanded."
autoScroll
type"boolean"
defaultfalse
description"Automatically scroll nodes into the visible area."
clickFolderMode
type"integer"
enum
1
2
3
4
default4
description"Behavior when clicking a folder node: 1 = activate, 2 = expand, 3 = activate and expand, 4 = activate (double-click expands)."
checkbox
type"boolean"
defaultfalse
description"Show checkboxes."
checkboxAutoHide
type"boolean"
defaultfalse
description"Display checkboxes on hover only."
debugLevel
type"integer"
enum
0
1
2
3
4
default4
description"Debug logging level: 0 = quiet, 1 = errors, 2 = warnings, 3 = infos, 4 = debug."
disabled
type"boolean"
defaultfalse
description"Disable the control."
focusOnSelect
type"boolean"
defaultfalse
description"Set focus when a node is checked by a mouse click."
escapeTitles
type"boolean"
defaultfalse
description"Escape `node.title` content for display."
generateIds
type"boolean"
defaultfalse
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"
defaulttrue
description"Display node icons."
keyboard
type"boolean"
defaulttrue
description"Support keyboard navigation."
keyPathSeparator
type"string"
default"/"
description"Separator used by `node.getKeyPath()` and `tree.loadKeyPath()`."
minExpandLevel
type"integer"
minimum1
default1
description"Minimum expansion level. 1 = the root node is not collapsible."
quicksearch
type"boolean"
defaultfalse
description"Navigate to the next node by typing the first letters."
rtl
type"boolean"
defaultfalse
description"Enable RTL (right-to-left) mode."
selectMode
type"integer"
enum
1
2
3
x-enum-titles
"single"
"multi"
"multi-hierarchical"
default1
tabindex
type"string"
default"0"
description"Tabindex for the tree. The whole tree behaves as one single control."
titlesTabbable
type"boolean"
defaultfalse
description"Node titles can receive keyboard focus."
tooltip
type"boolean"
defaultfalse
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-compacttrue
x-format"json"
x-input"jsoneditor"
description"inline data"
x-dependency
source-selector"inline"
sourceUrl
type"string"
x-compactfalse
x-no-titletrue
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
source-selector"url"
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"