Class GridRow
public class GridRow
Inheritance
System.Object
GridRow
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: HomeSeer.Jui.Views
Assembly: PluginSdk.dll
A set of views that are displayed as a flexbox row within a GridView
Constructors
View SourceGridRow()
Create a new instance of a view group row
Declaration
[JsonConstructor]
public GridRow()
Fields
View Source_items
The items to display within this row.
Declaration
[JsonProperty("items")]
List<GridRowItem> _items
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<GridRowItem> |
Properties
View SourceHorizontalAlignment
The horizontal alignment of the items in the row
Declaration
[JsonProperty("horizontal_alignment")]
public EHorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Type | Description |
---|---|
EHorizontalAlignment |
VerticalAlignment
The vertical alignment of the items in the row
Declaration
[JsonProperty("vertical_alignment")]
public EVerticalAlignment VerticalAlignment { get; set; }
Property Value
Type | Description |
---|---|
EVerticalAlignment |
Views
The views to display within this row. This is for access only.
Declaration
[JsonIgnore]
public ReadOnlyCollection<AbstractView> Views { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<AbstractView> |
Methods
View SourceAddItem(AbstractView, EColSize, EColSize, EColSize, EColSize, EColSize)
Add an item to the row
Declaration
public void AddItem(AbstractView view, EColSize extraSmallSize = EColSize.Col, EColSize smallSize = EColSize.None, EColSize mediumSize = EColSize.None, EColSize largeSize = EColSize.None, EColSize extraLargeSize = EColSize.None)
Parameters
Type | Name | Description |
---|---|---|
AbstractView | view | |
EColSize | extraSmallSize | |
EColSize | smallSize | |
EColSize | mediumSize | |
EColSize | largeSize | |
EColSize | extraLargeSize |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when the specified view or its ID is null |
GetHorizontalAlignmentClass()
Declaration
string GetHorizontalAlignmentClass()
Returns
Type | Description |
---|---|
System.String |
GetVerticalAlignmentClass()
Declaration
string GetVerticalAlignmentClass()
Returns
Type | Description |
---|---|
System.String |
ToHtml(Int32)
Get a string representation of this grid row converted into HTML
Declaration
public string ToHtml(int indent = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | indent |
Returns
Type | Description |
---|---|
System.String | An HTML representation of the view as a string |