Added sticky option to toolbar
This commit is contained in:
parent
aff7ec5630
commit
f2a5231c8d
|
@ -1,4 +1,4 @@
|
||||||
<div class="flex flex-wrap gap-1 p-2 bg-base-200" @attributes="AdditionalAttributes">
|
<div class="flex flex-wrap gap-1 p-2 bg-base-200 @(!Sticky ? string.Empty : "sticky top-0")" @attributes="AdditionalAttributes">
|
||||||
@ChildContent
|
@ChildContent
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -7,4 +7,6 @@
|
||||||
public required RenderFragment ChildContent { get; set; }
|
public required RenderFragment ChildContent { get; set; }
|
||||||
[Parameter(CaptureUnmatchedValues = true)]
|
[Parameter(CaptureUnmatchedValues = true)]
|
||||||
public IDictionary<string, object>? AdditionalAttributes { get; set; }
|
public IDictionary<string, object>? AdditionalAttributes { get; set; }
|
||||||
|
[Parameter]
|
||||||
|
public bool Sticky { get; set; } = true;
|
||||||
}
|
}
|
||||||
|
|
2
Wave/wwwroot/css/main.min.css
vendored
2
Wave/wwwroot/css/main.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue