Purpose
Simple Tree, for work manual nodes. You can create own structure by parent-child relations.
How does it looks like? (click to animate GIF)
Or as static image.
Styles | ||
scn-pack-Tree | the tree style |
Available Properties
Property Name | Description |
---|---|
defaultImage | image property for default image (must be set for use with images) |
Scripting Functions
Scripts | Short Description |
---|---|
void removeAllNodes () | removes all nodes |
void addNode ( /**Node Key (must be unique)*/String nodeKey, /**Node text*/String nodeText, /**Image URL, if not set, no image*/String imageUrl, /**The Key of the parent Node*/String parentNodeKey, /**Leafs do not have expand option by default*/optional boolean isLeaf) | adds a node with reference to parent node.
"ROOT" is the technical key for the root node |
String getExpandedKey () | returns the expanded key |
String getSelectedKey () | returns the selected key (by click on the node or leaf) |
Events
Event | Short Description |
---|---|
onSelectionChanged | Event triggered when node or leaf is selected |
onFirstExpand | Event triggered when the node is expanded for first time (this is the even where you can load more content |
Example Application
An Application with example can be downloaded at the BIAPP Repository:
- KarolKalisz/DesignStudioBiAppRepository · GitHub
- or take it as newest ZIP: Releases · KarolKalisz/DesignStudioBiAppRepository · GitHub
Releases
Source Code & Licensing
This component is for free use. It is under the Open Source Apache Version 2.0 License.
Important MaintenanceNotice (... as I am SAP Employee)
The component is NOT delivered under SAP maintenance license.
You cannot claim any Support on this component from SAP!
The components are created on "private" basis - you can use them as is. I can modify, correct or improve - but there is no obligation to do it. Of course I will try to correct bugs or improve the component as long I can.
Have Fun!
for other components see: Karol's SDK Components
Ps. only basic properties are attached, if some are missing - just make a comment.
LInk to SAPUI5: SAPUI5 SDK - Demo Kit