Chip

  • Shows Chips with actions.

Example Link

Features/Functionality

  • Shows chips.
  • Actions can be performed on chips.
  • Component is responsive.
  • It is cross browser compatible. (Edge, Firefox, chrome).

Basic Usage

Dependencies

Definition

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

Schema Description

AttributeValueDescription
idstring typeIdentifier for component.
labelstring typeLabel to be shown.

icon

object typeIcon to be shown.

options

object typeOptions for component.
isDisabledboolean typeIs dropdown disabled.
titlestring typeTooltip to be shown.
onClickstring typeMethod to be called on click.
elmInstanceany typeIcon element instance.
customParentContextany typeParent Context to call callback methods.

data

PropertyValueDescriptionValue
iconSchemaobject typeIcon Schema class
positionleft/rightPosition of icon to be shown

options

PropertyValueDescriptionValue
typerounded/boxedType of chip
sizesmall/medium/largesize of chip
isShadowboolean typeIs Shadow required
colorneutral/dark/lightColor of chip

Schema Example

let schema = {
id: '',
label:'',
title: '',
icon: {
iconSchema: {},
position: left/right
}
isDisabled: true/false,
options: {
isShadow: true/false,
color: '',
type: '',
size: '',
},
onClick: ''
}