MaterialChipComponent<T> class
A "chip" widget renders an object in the 'chip' format - a rounded box with
a shadow, typically used in a horizontal list. Any object implementing the
HasUIDisplayName
interface can be used, or no object at all.
The delete button is only shown when a selectionModel is set on the widget
or a removable property is true.
When hasLeftIcon is true, the left-icon content should be set to a
MaterialIconComponent
or an SVG image.
Chip components are rendered in a material-chips
component.
- Inheritance
-
- Object
- RootFocusable
- MaterialChipComponent
- Implemented types
-
- HasRenderer<
T>
- HasRenderer<
- Annotations
-
- @Component(selector: 'material-chip', providers: [ExistingProvider(HasRenderer, MaterialChipComponent)], templateUrl: 'material_chip.html', styleUrls: ['material_chip.scss.css'], directives: [ButtonDirective, NgIf], changeDetection: ChangeDetectionStrategy.onPush)
Constructors
- MaterialChipComponent(Element root)
Properties
- deleteButtonAriaMessage ↔ String
-
Aria label for delete button.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasLeftIcon ↔ bool
-
Whether the chip should show the custom icon, default to false.
getter/setter pair
-
itemRenderer
↔ ItemRenderer<
T> -
An
ItemRenderer
function (takes an object and returns a string).getter/setter pairoverride - label → String?
-
no setter
- removable ↔ bool
-
Whether the chip should show remove button, default to true.
getter/setter pair
- remove → Stream
-
Event fired when the chip is removed which returns the value of the chip.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectionModel
↔ SelectionModel<
T> -
A selection model to render as chips.
getter/setter pair
- uuid → String?
-
no setter
- value ↔ dynamic
-
Data model to render.
getter/setter pair
Methods
-
dispose(
) → void -
Disposes this disposable and any resources it has open.
inherited
-
focus(
) → void -
Item/component focuses itself
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeChip(
dynamic event) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- chipDeleteButtonMessage → String
-
final