Cascader

Displays the content as a categorized menu using parent→children view. The children options will be opened when the user selects or hovers over the parent option.

Basic

JSON Data to show cascading selections

This accepts the content as a JSON packet and all the children nodes are contained in the packet. Each element has the following properties and values corresponding to the property.

PropertyDescription

value

Recommended keeping this value unique for referring to the node during development

label

The label that is displayed to denote each node

children

A node may have zero children, or it can have as many nested children as needed to display in a submenu

[
 {
  "value": "California",
  "label": "California",
  "children": [
   {
    "value": "San Francisco",
    "label": "San Francisco",
    "children": [
     {
      "value": "The Golden Gate Bridge",
      "label": "The Golden Gate Bridge"
     }
    ]
   }
  ]
 },
 {
  "value": "New South Wales",
  "label": "New South Wales",
  "children": [
   {
    "value": "Sydney",
    "label": "Sydney",
    "children": [
     {
      "value": "Sydney Opera House",
      "label": "Sydney Opera House"
     }
    ]
   }
  ]
 }
]

Default Value

This is the JSON value extracted from cascaded data to show it as the default value when the user focuses on the widget. If the user wants to show the default value from the nested child node, the value should start with the parent node and reach to the children node using the separator as below.

["California","San Francisco","The Golden Gate Bridge"]

Placeholder

Specifies a hint that describes the expected value. The placeholder shows the hint text in the widget when nothing is selected or entered. This text disappears as soon as a value is entered in the control.

Interaction

Event Handlers

EventDescription

Change

This event is activated when the value of the widget is changed. When this event triggers, the associated action gets executed.

focus

This event is triggered when the widget receives focus, meaning it becomes the active element that can accept user input.

blur

This event occurs when the user shifts the focus out of the widget. The corresponding action is executed once the event is triggered.

Disabled

Disables the user interaction with the element on the page. It visually indicates that the element is inactive and prevents users from interacting with it when applied.

Hide

This sets whether the widget has to be displayed on the screen when the program is loaded. This shows/hides the widget both on desktop and mobile devices.

Label

Represents the caption for the widget in the user interface. It is recommended to keep the label string short and convey the usage of the widget in the UI.

Tooltip

This tooltip pops up when the user moves the mouse over the label area of the widget. This is commonly used to provide some extra or important information to the user on the usage of the widget.

The tooltip will be immediately shown when the user's mouse hovers over the widget, and immediately hides when the user's mouse leaves. This information will be contextual, useful, and informative.

Position

PropertyDescription

Left

Top

Alignment

PropertyDescription

Left

Right

Width

Enter a number value to set the width of the widget. It can be set in terms of pixels and percentage.

Layout

Widget Tooltip

This tooltip pops up when the user moves the mouse over the input area of the widget. It is commonly used to hint at the type of input the user needs to provide.

The tooltip will be immediately shown when the user's mouse hovers over the widget, and immediately hides when the user's mouse leaves. This information will be contextual, useful, and informative.

Advanced

Show Clear Button

Displays an 'x' symbol at the right end of the widget box, and the selected value is cleared out when the user clicks the clear button.

Searchable

Provides users with the ability to search using a keyword and show the filtered-down results for better usability. Users can start typing in the input box and the filtered results will be shown as they type.

Style

PropertyDescription

Label

Set the colour of the label text. Recommended to set in contrast with the background.

Background

Users can change the colour of the text background using this property. It has all the RGB colour ranges to pick from. It is recommended to use a corresponding background colour that shows the font clearly.

Border Color

Set the colour to the border lines. The border lines will be shown only if that is enabled.

Border Radius

This sets the radius of the widget's corners, enabling rounded corners on the widget. This value is defined in "px" terms.

Text

Set the colour of the text used to show the tree view content. Recommended to set in contrast with the background.

Accent

An accent is a typically bright colour that contrasts with the more utilitarian background and foreground colours within a colour scheme. These are present in the visual style of many platforms (though not all).

On the web, an accent is sometimes used in input elements for the active portion of the control, for instance, the background of a checked checkbox. MSDN web docs

Margin

This value is set in terms of "px" number which creates the space between the border and the content of the widget.

Padding

This value is set in terms of "px" number which creates the space between the border and outer elements.

Last updated