NcDashboardWidget
Props
| Prop name | Description | Type | Values | Default |
|---|---|---|---|---|
| items | An array containing the items to show (specific structure must be respected, except if you override item rendering in the default slot). | array | - | [] |
| showMoreUrl | If this is set, a "show more" text is displayed on the widget's bottom. It's a link pointing to this URL. | string | - | '' |
| showMoreLabel | The text of show more button. Expected to be in the form "More {itemName} …" | string | - | t('More items …') |
| loading | A boolean to put the widget in a loading state. | boolean | - | false |
| itemMenu | An object containing context menu entries that will be displayed for each item. | object | - | {} |
| showItemsAndEmptyContent | Whether both the items and the empty content message are shown. Usefull for e.g. showing "No mentions" and a list of elements. | boolean | - | false |
| emptyContentMessage | The text to show in the empty content area. | string | - | '' |
| halfEmptyContentMessage | The text to show in the half empty content area. | string | - | '' |
Slots
| Name | Description | Bindings |
|---|---|---|
| halfEmptyContentIcon | The icon to show in the half empty content area. | |
| default | The default slot can be optionally overridden. It contains the template of one item. | |
| empty-content | Slot for showing information in case of an empty item list. | |
| emptyContentIcon | The icon to show in the empty content area. |
Usage
Simplest example with custom item
loading...
Showing items and a half empty content message
loading...
Complete example using NcDashboardWidgetItem
loading...