diff --git a/Source/Blazorise.Tailwind/DropdownToggle.razor b/Source/Blazorise.Tailwind/DropdownToggle.razor index 7f08c40a92..a6a85bdb86 100644 --- a/Source/Blazorise.Tailwind/DropdownToggle.razor +++ b/Source/Blazorise.Tailwind/DropdownToggle.razor @@ -1,5 +1,29 @@ -@inherits Blazorise.DropdownToggle +@using System.Text +@inherits Blazorise.DropdownToggle \ No newline at end of file + + +@code { + string DropdownToggleArrowClassNames + { + get + { + var sb = new StringBuilder( "b-dropdown-toggle-arrow" ); + + if ( !IsToggleIconVisible ) + { + sb.Append( " hidden" ); + } + + sb.Append( " w-4 h-4 ml-1" ); + + return sb.ToString(); + } + } + + /// + /// Gets or sets the reference to the parent component. + /// + [CascadingParameter] protected Bar ParentBar { get; set; } +} \ No newline at end of file