Class: Divider

UI.Components. Divider


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',
  },
 });

Extends

Methods


setStyle(style)

Sets the style of the Item (padding, border, background, etc.)
Parameters:
Name Type Description
style Object An object that can change the CSS style of the Item component.
Inherited From: