New to Kendo UI for Angular? Start a free 30-day trial
ListItemModel
Represents the item models of the Kendo UI DropDownButton and SplitButton components. These are the interface fields that the items use.
typescript
@Component({
selector: 'my-app',
template: `
 <kendo-splitbutton [data]="items">SplitButton</kendo-splitbutton>
`
})
class AppComponent {
  public items: ListItemModel[] = [{
     text: 'item1',
     icon: 'arrow-rotate-cw',
     click: (dataItem: any) => {
         //action
     }
 }, {
     text: 'item2',
     iconClass: 'test icon class',
     click: (dataItem: any) => {
         //action
     }
 }]
}
| Name | Type | Default | Description | 
|---|---|---|---|
click? | 
 | 
 Emits an event when the item is clicked.  | |
cssClass? | 
 | 
 Specifies the CSS classes rendered on the item element. Supports the same values as   | |
disabled? | 
 | 
 Disables the button list item when set to   | |
icon? | 
 | 
 Defines an icon rendered next to the title.  | |
iconClass? | 
 | 
 Defines an icon with a custom CSS class rendered next to the title.  | |
imageAlt? | 
 | 
 Specifies the value of the image element   | |
imageUrl? | 
 | 
 Specifies the location of an image displayed next to the title.  | |
svgIcon? | 
 | 
 Defines an SVGIcon rendered next to the title.  | |
text? | 
 | 
 Sets the text of the item.  |