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 |
Clears 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 of this component.
| Name | Type | Optional | Description |
|---|---|---|---|
| id | number | No | The id to use |
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.Note that by disabling validation, there is no guarantee that the resulting object will be valid.
| Name | Type | Optional | Description |
|---|---|---|---|
| validationOverride | boolean | Yes | Force validation to run/not run regardless of your global preference |