Grouped Icons

  • Shows group of icons in popup or parent class.

Example Link

Features/Functionality

  • Shows an icon.
  • On click of icon, shows other icons;
  • Icons are shown in tooltip type popups or in parent div.
  • Click event callback will called on click.
  • Component is responsive.
  • It is cross browser compatible. (IE11, Edge, Firefox, chrome).

Basic Usage

Dependencies

Definition

<cst-s-grouped-icon schema.bind="${schema}"></cst-s-grouped-icon>

Schema Description

AttributeValueDescription
idstring typeIdentifier for component.
namestring typeName of icon to be shown.
labelstring typeLabel to show beside icon.
tooltipstring typeDescription to show on hover.
subscriptany typeSubscript to be shown.
superscriptany typeSuperscript to be shown.
isDisableboolean typeIf icon is disabled.
isActiveStateboolean typeIf icon is in active state or not.

options

object typeOptions for icon component.
onClickstring typeMethod to be called on click of child icons.
elmInstanceany typeIcon element instance.

groupIconOptions

object typeOptions for the component.
childItemsarray typeArray of icons to show on click.

subAccessCtrl

object typeAccess Ctrl for the component.

subTheme

object typeTheme for the component.

subFont

object typeFont for the component.

subStyle

object typeStyle for the component.

subRawAttributes

object typeRaw Attributes for the component.

options

PropertyValueDescriptionValue
iconShapebox/circle/noneShape of the background div of the icon.
iconShadedark/lightShade of the icon.
labelPositionbottom/top/left/rightPosition of label to be placed.
tooltipPositionbottom/top/left/rightPosition of custom tooltip to be shown.
activeStyleborder/filled/boxBorderTop/boxBorderBottom/boxBorderLeft/boxBorderRight/tabLeft/tabRight/tabBottom/tabTopStyle how active icon to be shown.

groupIconOptions

PropertyValueDescriptionValue
parentClassstring typeClass of parent div to show more icons in same div only.
popupPositiontopLeft/topRight/bottomLeft/bottomRightPosition of the popup.

Schema Example

let schema = {
id: '',
name: '',
label: '',
tooltip: '',
subscript: '',
superscript: '',
isDisable: true/false,
isActiveState: true/false,
options: {
},
onClick: '',
elmInstance: '',
childItems: [{}],
groupIconOptions: {
parentClass: '',
popupPosition: ''
},
subAccessCtrl: {},
subTheme: {},
subFont: {},
subStyle: {},
subRawAttributes: {}
}