Lozenges
Lozenges are used to indicate a selection and can be displayed on their own or within a form field. Lozenges also include a manner to remove selections
Code
API: stable
Example | Notes | Code | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Macaw
|
Lozenge |
ASP Attributes
|
||||||||||||||
Macaw
|
Closeable lozenge |
|
||||||||||||||
Macaw
|
Closeable lozenge custom icon text |
|
||||||||||||||
Hyperlink lozenge |
|
|||||||||||||||
Closable lozenge with hyperlink |
|
|||||||||||||||
Open
Closed
Undecided
|
Lozenge groups enclose sets of Lozenges, adding padding when no other parent element is available. |
|
Lozenges Attributes
Element | Attributes | Description |
---|---|---|
.ace-lozenge
|
data-ace-closeable="true"
|
Makes the lozenge closable. |
.ace-lozenge
|
data-ace-closeabletext="text"
|
Adds alternative text for closeable icon control. |
.ace-lozenge
|
.ace-lozenge-interactive
|
Used for styling of interactive elements such as clocable and link lozenges |
Name | Description |
---|---|
customclass | Adds a custom class |
closeable | Makes lozenges closeable. options:[True, Empty]
|
Javascript
Events
Event | Description | Example |
---|---|---|
removeLozenge | Fires when Lozenge has been removed |
|
Optional Methods
Function | Arguments | Description | Example |
---|---|---|---|
init | $parentEl | Initialises all children lozenges of an element |
|
destroy | $parentEl | Removes all children lozenges of an element |
|
remove | lozengeId | Removes the lozenge element from the DOM |
|