ContentTreeElement
ContentTreeElement is a custom HTML element that displays a customizable SAS Viya folder tree for
navigation. This element extends
HTMLElement.
Custom Element Tag
<sas-content-tree url="http://my-viya-server.com" style="height: 500px"></sas-content-tree>
The tree requires an explicit height. If neither height nor min-height is set through the
style or class attribute, a default height of 500px is applied.
Attributes
url
See url.
authentication-type
See authenticationType.
Properties
onSelect: (parentItems: Item[], item: Item) => void
A callback function that can be used to respond to the selection of nodes in the ContentTreeElement.
Arguments
parentItems: Item[]
An array of the selected item's ancestor Items, starting with the root.
item: Item
The selected Item.
onExpand: (parentItems: Item[], expanded: boolean, item: Item) => void
A callback function that can be used to respond to the expansion of nodes in the ContentTreeElement.
Arguments
parentItems: Item[]
An array of the expanded item's ancestor Items, starting with the root.
expanded: boolean
Whether the node was expanded (true) or collapsed (false).
item: Item
The expanded Item.