MdAssistChip

open class MdAssistChip : MdChip

Assist chips represent smart or automated actions that can span multiple apps, such as opening a calendar event from the home screen.

Assist chips function as though the user asked an assistant to complete the action. They should appear dynamically and contextually in a UI.

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

Author

Maanrifa Bacar Ali

Inheritors

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: MdAssistChip.() -> Unit? = null)

Assist chip constructor.

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>