Skip to main content

Sidebar custom HTML properties

Usage

const data = [
{
type: "customHTML",
id?: string | number,
parent?: string,
html?: string,
css?: string | string[],
hidden?: boolean,
},
// more Sidebar controls
]

Description

type(required) the item type, set it to "customHTML". If not specified - the "navItem" type is applied by default.
id(optional) the id of an item, auto-generated if not set
parent(optional) the parent of the item
html(optional) a string with HTML that should be inserted into the item
css(optional) adds style classes
hidden(optional) defines whether an item is hidden

Example

Related article: Custom HTML