Tree
The tree Component is used to represent hierarchical menu structures in a hierarchy format. It is mandatory to configure the properties ObjProp's Id, Parent Id, Title, and Title Symbolic.
- How to Create
Choose
Tree
type in New Component Popup Screen.Enter the name for the component and the name displayed on the Screen (
Symbolic String
orCustom Name
). After that, select the created Business Object.Component에 Business Object의 Field Mapping을 한다. (Step4)
INFO
Layout Type Selection in Step2 is skipped.
- Applicable List of Component Attributes
Search Type: An attribute that determines the search type of the List.
Default Expand All: This sets whether nodes are expanded when the Tree loads. If set to
Default
orNo
, only the top-level nodes are displayed, with their child nodes collapsed. If set toYes
, all nodes are displayed expanded.Collapse Disabled: This attribute disables the collapse feature in the Toolbar. The default value is
NO
, indicating that the collapse feature is enabled. Changing it toYES
keeps the Component expanded at all times.Default Collapse State: When Collapse Disabled is set to
No
, this attribute sets the initial state of the screen upon entry. The default value isN/A
, indicating that the collapse feature is enabled. Changing it toClose
means that the screen starts with all nodes collapsed.Tab Pane Id: When the Screen is structured with a Tab Component and this Component is placed at the bottom, the Tab Component's Panel Id value is registered to link it with the Tab.
Object Prop: This is an attribute for data retrieval in the Tree Component. If incorrectly registered or omitted, Tree's structure may not be displayed.
INFO
The relationship between controls must be set according to the parent-child relationship. For the Id, the Id value of the child Control should be entered, and for the Parent Id, the parent Id value of the child Control Id entered in the Id should be entered. Additionally, the Title selects the name of the Control to be displayed on the screen.
Style – Font: The font of the text in the Tree Component is configured.
Style – Text Color: The text color of the Tree Component is configured.
Style – Back Color: The background color of the Tree Component is configured.
Style – Flat Appearance: The border of Tree Component is configured.
Style – Outline: The Outline of the Tree Component is configured.
- Available List of Services
Name | Platform | Description |
---|---|---|
load | Common | The event that occurs during data loading |
node-click | Web | The event tha occurs when tree node is clicked |
Load: The event that occurs when the Tree Component is loaded, and for the Load Event, it is important to register the Action Service configuration for the Tree Component.
The Load Event occurs every time a node in the tree is clicked.
INFO
You can register a Lambda Action to execute the Load, and in the Prop, you can register the Key value as objectProp
to pass it along.
[Image 1. Node Click Example]
Node-Click: The Service executed when clicking on a tree node in the Tree Component is an event specific to web platforms, as it involves interacting with the user interface.
[Image 2. Registration of Action that calls Alert when Node is clicked]
- Available List of Controls
- ToolbarButton: A control where an action can be invoked when a button is clicked or touched.
- Lookup: A control that invokes a popup window for searching, allowing users to select search criteria from within the popup screen.
- Text: An Input control for text input.
- Select: A dropdown list control where options are selectable, with the Group Code from registered
Common Code
being used as options. - CheckBox: A control that allows for selection and deselection via checkboxes.
- Hidden: Set the hidden attribute of controls within a component.
- DatePicker: A control that facilitates easy selection of dates in a UI format when entering dates.