You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
814 B
28 lines
814 B
@namespace Connected.Components
|
|
@using Connected.Extensions;
|
|
@using Connected.Utilities;
|
|
|
|
@if (!DisableToolbar)
|
|
{
|
|
<ToolBar Class="@Classnames" Style="@Style">
|
|
@ChildContent
|
|
</ToolBar>
|
|
}
|
|
|
|
|
|
@code {
|
|
protected string Classnames =>
|
|
new CssBuilder("mud-picker-toolbar")
|
|
.AddClass($"mud-theme-{Color.ToDescriptionString()}")
|
|
.AddClass("mud-picker-toolbar-landscape", Orientation == Orientation.Landscape)
|
|
.AddClass(Class)
|
|
.Build();
|
|
|
|
[Parameter] public string Class { get; set; }
|
|
[Parameter] public string Style { get; set; }
|
|
[Parameter] public bool DisableToolbar { get; set; }
|
|
[Parameter] public Orientation Orientation { get; set; }
|
|
[Parameter] public ThemeColor Color { get; set; }
|
|
[Parameter] public RenderFragment ChildContent { get; set; }
|
|
}
|