Skip to content

Commit

Permalink
Add Dir property to bit BlazorUI demo docs bitfoundation#7030
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrastegari committed Mar 5, 2024
1 parent 5e6221f commit e1d399a
Showing 1 changed file with 35 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public partial class ComponentDemo
[Parameter] public List<ComponentSubClass> ComponentSubClasses { get; set; } = new();
[Parameter] public List<ComponentSubEnum> ComponentSubEnums { get; set; } = new();
[Parameter] public List<ComponentParameter> ComponentPublicMembers { get; set; } = new();



private readonly List<ComponentParameter> _componentBaseParameters = new()
Expand All @@ -30,6 +30,15 @@ public partial class ComponentDemo
Description = "Custom CSS class for the root element of the component.",
},
new()
{
Name = "Dir",
Type = "BitDir?",
DefaultValue = "null",
Description = "Determines the component direction.",
LinkType = LinkType.Link,
Href = "#component-dir",
},
new()
{
Name = "HtmlAttributes",
Type = "Dictionary<string, object>",
Expand Down Expand Up @@ -113,12 +122,36 @@ public partial class ComponentDemo
Description="The component is hidden (display:none).",
}
}
},
new()
{
Id = "component-dir",
Name = "BitDir",
Description = "",
Items = new List<ComponentEnumItem>()
{
new()
{
Name= "Ltr",
Value="0",
},
new()
{
Name= "Rtl",
Value="1",
},
new()
{
Name= "Auto",
Value="2",
}
}
}
};



private readonly List<string> _inputComponents = new() {
private readonly List<string> _inputComponents = new() {
"Calendar", "Checkbox", "ChoiceGroup", "DatePicker", "DateRangePicker", "Dropdown", "NumberField", "OtpInput", "Rating",
"SearchBox", "SpinButton", "TextField", "TimePicker", "Toggle"
};
Expand Down

0 comments on commit e1d399a

Please sign in to comment.