new Divider(properties)
Creates a new instance of Divider.
Parameters:
Name |
Type |
Description |
properties |
Object
|
An object that contains the properties of the Divider Item.
Properties
Name |
Type |
Argument |
Description |
dataElement |
string
|
|
The data element of the divider item. |
style |
Object
|
<optional>
|
An object defining inline CSS styles for the divider, where each key represents a CSS property and its corresponding value. |
className |
string
|
<optional>
|
String with CSS classes to be applied to the divider, allowing additional styling and customization through external stylesheets. |
|
Example
const dividerItem = new instance.UI.Components.Divider({
dataElement: 'divider1',
className: 'custom-divider',
style: {
backgroundColor: 'red',
},
});