Description
This function that wraps a spectre renderable item in padding.
See https://spectreconsole.net/widgets/padder for more information.
Examples
Example 1
This example demonstrates how to pad an item with a padding of 1 on all sides
Example 2
This example demonstrates how to pad an item with a padding of 4 on all sides
Example 3
This example demonstrates how to pad an item with different padding on each side.
Parameters
Data
A renderable item to wrap in padding.
Type | Required | Position | PipelineInput |
---|
[Object] | true | named | true (ByValue) |
Padding
Type | Required | Position | PipelineInput |
---|
[Int32] | true | named | false |
Top
Type | Required | Position | PipelineInput |
---|
[Int32] | true | named | false |
Left
Type | Required | Position | PipelineInput |
---|
[Int32] | true | named | false |
Bottom
Type | Required | Position | PipelineInput |
---|
[Int32] | true | named | false |
Right
Type | Required | Position | PipelineInput |
---|
[Int32] | true | named | false |
Expand
Type | Required | Position | PipelineInput |
---|
[Switch] | true | named | false |
Syntax