Class GridRowItem
public class GridRowItem
Inheritance
System.Object
GridRowItem
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 view displayed as a flex item within a GridRow A size can be associated to this item for each responsive breakpoint
Constructors
View SourceGridRowItem(AbstractView, EColSize, EColSize, EColSize, EColSize, EColSize)
Create a new instance of a view row item
Declaration
[JsonConstructor]
public GridRowItem(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 |
Properties
View SourceExtraLargeSize
Size for screen width >= 1200px
Declaration
[JsonProperty("extra_large_size")]
public EColSize ExtraLargeSize { get; set; }
Property Value
Type | Description |
---|---|
EColSize |
ExtraSmallSize
Size for screen width 0-576px. If the same size is used for all screen width, use this property to set it, and leave the other property sizes to None
Declaration
[JsonProperty("extra_small_size")]
public EColSize ExtraSmallSize { get; set; }
Property Value
Type | Description |
---|---|
EColSize |
LargeSize
Size for screen width >= 960px
Declaration
[JsonProperty("large_size")]
public EColSize LargeSize { get; set; }
Property Value
Type | Description |
---|---|
EColSize |
MediumSize
Size for screen width >= 768px
Declaration
[JsonProperty("medium_size")]
public EColSize MediumSize { get; set; }
Property Value
Type | Description |
---|---|
EColSize |
SmallSize
Size for screen width >= 576px
Declaration
[JsonProperty("small_size")]
public EColSize SmallSize { get; set; }
Property Value
Type | Description |
---|---|
EColSize |
View
The view to display.
Declaration
[JsonProperty("view", IsReference = true)]
public AbstractView View { get; set; }
Property Value
Type | Description |
---|---|
AbstractView |
Methods
View SourceGetColSizeClass(String, EColSize)
Declaration
string GetColSizeClass(string prefix, EColSize size)
Parameters
Type | Name | Description |
---|---|---|
System.String | prefix | |
EColSize | size |
Returns
Type | Description |
---|---|
System.String |
GetHtmlDivClass()
Get the HTML div class for this item
Declaration
public string GetHtmlDivClass()
Returns
Type | Description |
---|---|
System.String | The div class for this item |