itemPadding(padding)
Class: ComboBox.
Description:
Gets or sets a padding for each item in the list. See example below.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
number | string |
Number for same padding on all sides, string to specify padding for each side "top right bottom left" |
Returns:
Returns this component instance if at least one argument is provided, otherwise returns current padding.
Type: string | List
Examples:
combobox.itemPadding(3); // defines same padding for top, right, bottom and left.
combobox.itemPadding("5 0 5 3"); // defines padding for each side separately, top=5, right=0, bottom=5 and left=3.
const padding = combobox.itemPadding(); // gets the padding object
