Chip

Search for usage in LXR

Chip Class Reference

Properties

alias labelItem
 

Detailed Description

A compact element that represents an attribute, action, or filter.

Should be used in a group of multiple elements. e.g when displaying tags in a image viewer.

Example usage:

  • import org.kde.kirigami as Kirigami
    Flow {
    Repeater {
    model: chipsModel
    Kirigami.Chip {
    text: model.text
    icon.name: "tag-symbolic"
    closable: model.closable
    onClicked: {
    [...]
    }
    onRemoved: {
    [...]
    }
    }
    }
    }
Since
2.19

Definition at line 37 of file Chip.qml.

Property Documentation

◆ labelItem

alias Chip::labelItem
read

This property holds the label item; used for accessing the usual Text properties.

Definition at line 47 of file Chip.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.