Padding
public struct Padding : Encodable
Sets the padding of the title.
Each padding value only applies when the corresponding xanchor/yanchor value is set
accordingly. E.g. for left padding to take effect, xanchor must be set to left. The same
rule applies if xanchor/yanchor is determined automatically. Padding is muted if the
respective anchor value is middle/center.
-
The amount of padding (in px) along the top of the component.
Declaration
Swift
public var t: Double? -
The amount of padding (in px) on the right side of the component.
Declaration
Swift
public var r: Double? -
The amount of padding (in px) along the bottom of the component.
Declaration
Swift
public var b: Double? -
The amount of padding (in px) on the left side of the component.
Declaration
Swift
public var l: Double? -
Creates
Paddingobject with specified properties.Declaration
Swift
public init(t: Double? = nil, r: Double? = nil, b: Double? = nil, l: Double? = nil)Parameters
tThe amount of padding (in px) along the top of the component.
rThe amount of padding (in px) on the right side of the component.
bThe amount of padding (in px) along the bottom of the component.
lThe amount of padding (in px) on the left side of the component.
View on GitHub
Install in Dash
Padding Structure Reference