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

Design Studio SDK: CheckBox Group (with Image) Component

$
0
0

Purpose

today a checkbox group with image (as optional) visualization.

 

How does it looks like? (click to animate GIF)

chekcbox group, with corresponding image per entry.

20140925-185810_capture.gif

 

Styles
scn-pack-CheckBoxGroupthe group itself style
scn-pack-CheckBoxGroup-Layoutthe single entry layout style
scn-pack-CheckBoxGroup-Picturethe picture style
scn-pack-CheckBoxGroup-CheckBoxthe checkbox style
scn-pack-CheckBoxGroup-SelectedValuethe selected layout style (only active when images are available)


Available Properties

 

Property NameDescription
fallbackPicture

Url to the fallback picture (must be set if picture is selected)

withPicture

with picture flag

pictureSizepicture size, 16px or 32px as choice

 

Scripting Functions

 

ScriptsShort Description
void removeAllElements ()removes all elements

void addElement (String elementKey,

               String elementText,

               String imageUrl,

               boolean selected)

adds an element

void insertElement (String elementKey,

               String elementText,

               String imageUrl,

               boolean selected,

               int insertionIndex0based)

inserts element at index

void updateElement (String elementKey,

               String elementText,

               String imageUrl,

               boolean selected)

updates element at key
void deleteElement (String elementKey)deletes element
String getKeyAtIndex (int index)returns key at given index
org.scn.pack.KeyLabelArray getSelectedElementsArray ()returns an array of selected elements
void setSelectedKey (String key, boolean selected)sets element as selectd / unselected
void setSelectedKeys (String keys, String separator)sets many elements as selected (those which are not in the list are unselected)


Events

 

EventShort Description
onSelectionChangedEvent triggered when selection is changed

 

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