public static MvcHtmlString UxCancelButton(this HtmlHelper helper, ButtonSize size = null, string clientId = null)
 {
     var button = new Button("Cancel", ButtonCommand.Cancel)
         .SetValidation(false)
         .SetSize(size);
     button.SetClientId(clientId);
     return UxButton(helper, button);
 }
 public static MvcHtmlString UxSaveButton(this HtmlHelper helper, ButtonSize size = null, string clientId = null)
 {
     var button = new Button("Save", ButtonCommand.Save, ButtonAppearanceType.Success)
         .SetIcon(new Icon(IconType.Check))
         .SetSize(size);
     button.SetClientId(clientId);
     return UxButton(helper, button);
 }
 public static MvcHtmlString UxDeleteButton(this HtmlHelper helper, ButtonSize size = null, string clientId = null)
 {
     var button = new Button("Delete", ButtonCommand.Delete)
         .SetValidation(false)
         .SetIcon(new Icon(IconType.TrashOutlined))
         .SetSize(size);
     button.SetClientId(clientId);
     return UxButton(helper, button);
 }
    public static MvcHtmlString UxButton(this HtmlHelper helper,
        string text,
        ButtonAppearanceType appearance = null,
        ButtonSize size = null,
        IconType iconType = null,
        IconPosition position = null,
        bool causesValidation = true,
        bool disabled = false,
        string loadingText = null,
        string clientId = null)
    {
        var button = new Button(text, ButtonCommand.None, appearance)
            .SetSize(size)
            .SetValidation(causesValidation)
            .SetDisabled(disabled)
            .SetLoadingText(loadingText);

        button.SetClientId(clientId);

        if (iconType!=null)
            button.SetIcon(new Icon(iconType), position);

        return UxButton(helper, button);
    }