ant-design-blazor/components/dropdown/internal/DropdownGroupButton.razor
Andrzej Bakun 4cac27f887 fix(module: dropdown): dropdown button missing properties & docs fix for Dropdown & Button (#1609)
* fix:fix(module:dropdownbutton): add regular button behaviors and properties

* fix(module:button): add text type & docs

* docs(module:dropdown): version correction

* fix(module:overlay): re-add IsButton parameter

* fix: add xml comment to public methods

* fix(module:overlay): add xml documentation

* fix(module:dropdown): chrome block button force

* fix(module:button): remove Search parameter

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-06-09 17:51:24 +08:00

25 lines
587 B
C#

@namespace AntDesign.Internal
@inherits AntDomComponentBase
<ButtonGroup Class="ant-dropdown-button" Style="@(Dropdown.Block ? $"display:flex; flex-direction:row;{Style}": Style)">
@if (Dropdown.ButtonsRender != null)
{
@Dropdown.ButtonsRender(LeftButton, RightButton)
}
else
{
@LeftButton
@RightButton
}
</ButtonGroup>
@code {
[CascadingParameter]
public Dropdown Dropdown { get; set; }
[Parameter]
public RenderFragment LeftButton { get; set; }
[Parameter]
public RenderFragment RightButton { get; set; }
}