MdFilterChip

open class MdFilterChip(label: String, elevated: Boolean = false, removable: Boolean = false, selected: Boolean = false, disabled: Boolean = false, alwaysFocusable: Boolean = false, ariaLabelRemove: String? = null, className: String? = null, init: MdFilterChip.() -> Unit? = null) : MdChip, RemovableChip

Filter chips use tags or descriptive words to filter content. They can be a good alternative to toggle buttons or checkboxes.

https://material-web.dev/components/chip/#filter-chip-example

Author

Maanrifa Bacar Ali

Constructors

Link copied to clipboard
constructor(label: String, elevated: Boolean = false, removable: Boolean = false, selected: Boolean = false, disabled: Boolean = false, alwaysFocusable: Boolean = false, ariaLabelRemove: String? = null, className: String? = null, init: MdFilterChip.() -> Unit? = null)

Properties

Link copied to clipboard
var alwaysFocusable: <Error class: unknown class>

When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled.

Link copied to clipboard
var ariaLabelRemove: <Error class: unknown class>

The aria label for remove action.

Link copied to clipboard
var disabled: <Error class: unknown class>

Whether or not the chip is disabled. Disabled chips are not focusable, unless always-focusable is set.

Link copied to clipboard
var elevated: <Error class: unknown class>

Determines if the chip is elevated.

Link copied to clipboard
var label: <Error class: unknown class>

The label of the chip.

Link copied to clipboard
open var parent: <Error class: unknown class>?
Link copied to clipboard
var removable: <Error class: unknown class>

Indicates that the ship is removable.

Link copied to clipboard
var selected: <Error class: unknown class>

Indicates that the chip is selected.

Functions

Link copied to clipboard
open override fun afterCreate(node: <Error class: unknown class>)
Link copied to clipboard
open override fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun dispose()
Link copied to clipboard
open override fun icon(component: <Error class: unknown class>?)
Link copied to clipboard

Sets the icon identified by name to the icon slot.

Link copied to clipboard
open fun render(): <Error class: unknown class>