Skip to content

AutoGridLayoutSpec🔗

Definition🔗

type AutoGridLayoutSpec struct {
    MaxColumnCount *float64 `json:"maxColumnCount,omitempty"`
    ColumnWidthMode dashboardv2beta1.AutoGridLayoutSpecColumnWidthMode `json:"columnWidthMode"`
    ColumnWidth *float64 `json:"columnWidth,omitempty"`
    RowHeightMode dashboardv2beta1.AutoGridLayoutSpecRowHeightMode `json:"rowHeightMode"`
    RowHeight *float64 `json:"rowHeight,omitempty"`
    FillScreen *bool `json:"fillScreen,omitempty"`
    Items []dashboardv2beta1.AutoGridLayoutItemKind `json:"items"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode AutoGridLayoutSpec from JSON.

Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (autoGridLayoutSpec *AutoGridLayoutSpec) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two AutoGridLayoutSpec objects.

func (autoGridLayoutSpec *AutoGridLayoutSpec) Equals(other AutoGridLayoutSpec) bool

Validate🔗

Validate checks all the validation constraints that may be defined on AutoGridLayoutSpec fields for violations and returns them.

func (autoGridLayoutSpec *AutoGridLayoutSpec) Validate() error

See also🔗