Name | Description | Group | Default | Visible |
---|
Name | Description | Group | Default | Visible |
---|---|---|---|---|
onTileSelect [ScriptText] |
On Tile Select On Tile Select |
Events | true |
Name | Parameters | Return |
---|---|---|
addTile [details] | title, (info), (icon), (number), (numberUnit), (valueState), (styleClass) | void |
getTileClicked [details] | String | |
getTileProperty [details] | title | org.scn.community.basics.TileProperty |
removeAllTiles [details] | void | |
removeTile [details] | title | void |
Name | Description | Group | Default | Visible |
---|---|---|---|---|
selectedTile [String] |
Selected Tile Selected Tile |
Display | false | |
tileConfig [String] |
Tile Config Tile Config |
Display | [] | false |
void addTile |
Adds or Updates a Tile (if title already exists) Add/Update a tile called "Sales" LAUNCHPAD_1.addTile("Sales", "YTD", "sap-icon://money-bills", "1234", "USD", "good");
|
||||||||||||||||||||||||
Source Code |
var o = eval(this.tileConfig); if(!o) o = []; var tile = { title: title, info: info, icon: icon, number: number, numberUnit: numberUnit, valueState : valueState || "None", styleClass : styleClass }; var matchIndex = -1; for(var i=0;i<o.length;i++){ if(o[i].title == title) matchIndex = i; } if(matchIndex==-1){ // New Tile o.push(tile); }else{ // Update Tile o[matchIndex] = tile; } tileConfig = JSON.stringify(o); |
||||||||||||||||||||||||
String getTileClicked |
Gets Tile Selected |
||||||||||||||||||||||||
Source Code | return this.selectedTile; | ||||||||||||||||||||||||
org.scn.community.basics.TileProperty getTileProperty |
|
||||||||||||||||||||||||
Source Code |
var r = { title : "", info : "", icon : "", number : "", numberUnit : "", valueState : "", styleClass : "" } var o = eval(this.tileConfig); var matchIndex = -1; for(var i=0;i<o.length;i++){ if(o[i].title == title) matchIndex = i; } if(matchIndex>-1){ var tileConf = o[matchIndex]; r.title = tileConf.title; r.info = tileConf.info; r.icon = tileConf.icon; r.number = tileConf.number; r.numberUnit = tileConf.numberUnit; r.valueState = tileConf.valueState; r.styleClass = tileConf.styleClass; } return r; |
||||||||||||||||||||||||
void removeAllTiles |
Remove All Tiles Remove all tiles LAUNCHPAD_1.removeAllTiles(); |
||||||||||||||||||||||||
Source Code | this.tileConfig = JSON.stringify([]); | ||||||||||||||||||||||||
void removeTile |
Remove a tile Remove a tile titled "Sales" LAUNCHPAD_1.removeTile("Sales");
|
||||||||||||||||||||||||
Source Code |
var o = eval(this.tileConfig); if(!o) o = []; var matchIndex = -1; for(var i=0;i<o.length;i++){ if(o[i].title == title) matchIndex = i; } if(matchIndex>-1) o.splice(matchIndex,1); tileConfig = JSON.stringify(o); |
||||||||||||||||||||||||