DropDownButtonComponent
Represents the Kendo UI DropDownButton component for Angular.
Use the DropDownButton to display a button with a popup list of actions.
@Component({
selector: 'my-app',
template: `
<kendo-dropdownbutton [data]="data">
User Settings
</kendo-dropdownbutton>
`
})
class AppComponent {
public data: Array<any> = [
{ text: 'My Profile' },
{ text: 'Friend Requests' },
{ text: 'Account Settings' },
{ text: 'Support' },
{ text: 'Log Out' }
];
}
Selector
kendo-dropdownbutton
Export Name
Accessible in templates as #kendoDropDownButtonInstance="kendoDropDownButton"
Inputs
Name | Type | Default | Description |
---|---|---|---|
arrowIcon |
|
|
Displays the default arrow icon or a custom one. |
buttonAttributes |
|
Sets attributes for the main button. | |
buttonClass |
|
The CSS classes applied to the main button.
Supports the same values as | |
data |
|
Sets or gets the data of the DropDownButton. Provide the data as an array-like list. | |
disabled |
|
Sets the disabled state of the DropDownButton.
When | |
fillMode |
|
|
Specifies the background and border styles of the DropDownButton. See DropDownButton Appearance. |
icon |
|
Specifies the name of an existing icon in the Kendo UI theme. | |
iconClass |
|
Specifies a list of CSS classes for styling the button with custom icons. | |
imageUrl |
|
Specifies a URL for styling the button with a custom image. | |
popupSettings |
|
Configures the popup of the DropDownButton. | |
rounded |
|
|
Specifies the border radius of the DropDownButton. See DropDownButton Appearance. |
size |
|
|
Specifies the padding of the DropDownButton. See DropDownButton Appearance. |
svgIcon |
|
Specifies an | |
tabIndex |
|
|
Specifies the |
textField |
|
Sets the data item field that represents the item text. If the data contains only primitive values, leave this undefined. | |
themeColor |
|
|
Specifies predefined theme colors for the DropDownButton. See DropDownButton Appearance. |
Fields
Name | Type | Default | Description |
---|---|---|---|
isOpen |
|
Returns the current open state of the popup. |
Events
Name | Type | Description |
---|---|---|
close |
|
Fires when the popup is about to close. This event is preventable. Canceling the event keeps the popup open. |
itemClick |
|
Fires when the user clicks a drop-down list item. The event data contains the data item bound to the clicked list item. |
blur |
|
Fires when the DropDownButton is blurred. |
focus |
|
Fires when the DropDownButton is focused. |
open |
|
Fires when the popup is about to open. This event is preventable. Canceling the event keeps the popup closed. |
Methods
blur |
---|
Blurs the DropDownButton. |
focus |
---|
Focuses the DropDownButton. |
toggle | ||||||
---|---|---|---|---|---|---|
Toggles the visibility of the popup.
If the | ||||||
|