No summary provided.
Creates a new separator from API data.
Example
Creating a separator from an API data object:Example
Creating a separator using setters and API data:| Name | Type | Optional | Description |
|---|---|---|---|
| data | Partial<APISeparatorComponent> | Yes | The API data to create this separator with |
The API data associated with this component.
Inherited from ComponentBuilderClears the id of this component, defaulting to a default incremented id.
Inherited from ComponentBuilderClears the spacing of this separator.
Sets whether this separator should show a divider line.
| Name | Type | Optional | Description |
|---|---|---|---|
| divider | boolean | Yes | Whether to show a divider line |
Sets the id (not the custom id) for this component.
| Name | Type | Optional | Description |
|---|---|---|---|
| id | number | No | The id for this component |
Sets the spacing of this separator.
| Name | Type | Optional | Description |
|---|---|---|---|
| spacing | SeparatorSpacingSize | No | The spacing to use |
Serializes this builder to API-compatible JSON data.