MdSuggestionChip

open class MdSuggestionChip(label: String, elevated: Boolean = false, href: String? = null, target: LinkTarget? = null, disabled: Boolean = false, alwaysFocusable: Boolean = false, className: String? = null, init: MdSuggestionChip.() -> Unit? = null) : MdAssistChip

Suggestion chips help narrow a user’s intent by presenting dynamically generated suggestions, such as possible responses or search filters.

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

Note: assist and suggestion chips are functionally identical with different tokens.

Author

Maanrifa Bacar Ali

Constructors

Link copied to clipboard
constructor(label: String, elevated: Boolean = false, href: String? = null, target: LinkTarget? = null, disabled: Boolean = false, alwaysFocusable: Boolean = false, className: String? = null, init: MdSuggestionChip.() -> 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 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 href: <Error class: unknown class>

The URL that the chip points to.

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 target: <Error class: unknown class>

Where to display the linked href URL for a link chip.

Functions

Link copied to clipboard
open 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>