List Item
<k-list-item>
The ListItem component is a very flexible tool to display an image together with a title (text) some meta information (info) and a dropdown with options in a line. It's the counter part to our cards.
Example
Props
flag
Object (default: null)
An additional button left next to the options toggle, which can be used to define any additional "flag" or option for the list item.
icon
String (default: null)
Defines the list item icon instead of an image. If an image is still defined,
the image will be used instead of the icon and this setting will be ignored.
image
Object (default: null)
Defines the list item image
info
String (default: null)
Sets the secondary info text
link
String (default: null)
Sets the link for the list item
options
Array
|Function (default: null)
Defines the options dropdown.
target
String (default: null)
Sets the link target
text
String (default null)
Sets the list item text
Slots
options
You can overwrite the options button and dropdown with your own elements:
Events
action
If you've defined the options dropdown, each click on a dropdown item will emmit the action
event.
CSS class
.k-list-item