TreeBuilder

From Wikisphere
Jump to navigation Jump to search
$schema"http://json-schema.org/draft-07/schema#"
$id"https://wikisphere.org/wiki/JsonSchema:SchemaBuilder/FancyTreeSource"
title"FancyTree source"
description"An array of FancyTree node objects, optionally nested via `children`."
type"array"
x-layout"paged"
items
$ref"#/definitions/Node"
definitions
Node
title"Node"
description"A single FancyTree node."
type"object"
required
"title"
properties
title
type"string"
description"Display label. May contain HTML if `rawTitle`-like behavior is expected; otherwise it is escaped."
key
type
"string"
"number"
description"Stable identifier for the node. Auto-generated if omitted."
tooltip
type"string"
description"Tooltip text shown on hover."
href
type"string"
description"URL the title links to."
nolink
type"boolean"
defaultfalse
description"If true, the title is rendered as plain text, not a link."
extraClasses
type"string"
description"Extra CSS classes applied to the generated <li>."
folder
type"boolean"
defaultfalse
description"Marks the node as a folder (has children)."
expanded
type"boolean"
defaultfalse
description"Expand this folder on load."
lazy
type"boolean"
defaultfalse
description"Defer loading children until the folder is expanded."
preload
type"boolean"
defaultfalse
description"For lazy folders: load children as soon as the folder is created."
selected
type"boolean"
defaultfalse
description"Selection state. Usually set by the widget, not the author."
children
type"array"
description"Child nodes. Only valid on folders."
items
$ref"#/definitions/Node"
additionalPropertiestrue