Liri Fluid API

Chip QML Type

Chips represent complex entities in small blocks, such as a contact. More...

Import Statement: import Fluid.Controls 1.1
Since: Fluid.Controls 1.1

Properties

Signals

Detailed Description

For more information you can read the Material Design guidelines.

Property Documentation

delegate : Component

Expandable chips show a popup with a list view when clicked.

The delegate provides a template defining each item instantiated by the list view.

By default the delegate is a Fluid.Controls::ListItem.

See also Fluid.Controls::Chip::expandable, Fluid.Controls::Chip::model, and Fluid.Controls::Chip::selectedItem.


deletable : bool

This property holds whether the chip can be deleted. The default value is false.


expandable : bool

This property holds whether this chip can expand to show more information or options.

See also Fluid.Controls::Chip::model, Fluid.Controls::Chip::delegate, and Fluid.Controls::Chip::selectedItem.


model : model

Expandable chips show a popup with a list view when clicked.

This property holds the model providing data for said list view.

The following roles are expected to be present:

  • label - Description of the option
  • value - Actual value of the option
  • imageSource - URL with the image source for the option

See also Fluid.Controls::Chip::expandable, Fluid.Controls::Chip::delegate, and Fluid.Controls::Chip::selectedItem.


[read-only] selectedItem : Component

Expandable chips show a popup with a list view when clicked.

This property holds the currently selected item.

By default the delegate is a Fluid.Controls::ListItem and the selected item contains the following properties:

  • string label - Description of the option
  • string value - Actual value of the option
  • url imageSource - URL with the image source for the option

See also Fluid.Controls::Chip::expandable, Fluid.Controls::Chip::model, and Fluid.Controls::Chip::delegate.


Signal Documentation

void deleted()

Emitted when the user wants to delete the chip.