MdChipSet

open class MdChipSet(className: String? = null, init: MdChipSet.() -> Unit? = null) : MdListWidget<MdChip>

Chips should always appear in a set. Chip set are toolbars that can display any type of chip or other toolbar items.

https://material-web.dev/components/chip/

Author

Maanrifa Bacar Ali

Constructors

Link copied to clipboard
constructor(className: String? = null, init: MdChipSet.() -> Unit? = null)

Properties

Link copied to clipboard

The chips of this chip set.

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

Functions

Link copied to clipboard
open override fun add(item: MdChip)

Adds given item to the current widget.

open override fun add(position: Int, item: MdChip)

Adds given item to the current widget at the given position.

Link copied to clipboard
open override fun addAll(items: List<MdChip>)

Adds a list of items to the current widget.

Link copied to clipboard
fun MdChipSet.assistChip(label: String, elevated: Boolean = false, href: String? = null, target: LinkTarget? = null, disabled: Boolean = false, alwaysFocusable: Boolean = false, className: String? = null, init: MdAssistChip.() -> Unit? = null): <Error class: unknown class>
Link copied to clipboard
open fun dispose()
Link copied to clipboard
open override fun disposeAll()

Removes all items from the current widget and disposes them.

Link copied to clipboard
fun MdChipSet.filterChip(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): <Error class: unknown class>
Link copied to clipboard
fun MdChipSet.inputChip(label: String, avatar: Boolean = false, href: String? = null, target: LinkTarget? = null, removeOnly: Boolean = false, selected: Boolean = false, disabled: Boolean = false, alwaysFocusable: Boolean = false, ariaLabelRemove: String? = null, className: String? = null, init: MdInputChip.() -> Unit? = null): <Error class: unknown class>
Link copied to clipboard
open override fun remove(item: MdChip)

Removes given item from the current widget.

Link copied to clipboard
open override fun removeAll()

Removes all items from the current widget.

Link copied to clipboard
open override fun removeAt(position: Int)

Removes the item from the current widget at the given position.

Link copied to clipboard
open fun render(): <Error class: unknown class>
Link copied to clipboard
fun MdChipSet.suggestionChip(label: String, elevated: Boolean = false, href: String? = null, target: LinkTarget? = null, disabled: Boolean = false, alwaysFocusable: Boolean = false, className: String? = null, init: MdSuggestionChip.() -> Unit? = null): <Error class: unknown class>