Quantcast
Channel: SCN : All Content - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4216

Design Studio SDK: Tree Component

$
0
0

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)

20141001-233033_capture.gif

Or as static image.

Capture.PNG

 

Styles
scn-pack-Treethe tree style


Available Properties

 

Property NameDescription
defaultImage

image property for default image (must be set for use with images)

 

Scripting Functions

 

ScriptsShort 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

 

EventShort Description
onSelectionChangedEvent triggered when node or leaf is selected
onFirstExpandEvent 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:

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


Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>