C# Class Framework.Mvc.Extensions.ButtonExtensions

Adds methods for generating buttons HTML-markup to HtmlHelper.
显示文件 Open project: coreframework/Core-Framework

Public Properties

Property Type Description
ButtonCssClass String
EmptyHref String
HiddenSubmitCssClass String
SubmitButtonCssClass String

Public Methods

Method Description
HiddenSubmit ( this html ) : System.Web.Mvc.MvcHtmlString

Renders an HTML submit element with HiddenSubmitCssClass CSS-class.

Hidden submit used for form submiting on enter press.

HiddenSubmit ( this html, String text ) : System.Web.Mvc.MvcHtmlString

Renders an HTML submit element with HiddenSubmitCssClass CSS-class.

Hidden submit used for form submiting on enter press.

LinkButton ( this html, String text ) : System.Web.Mvc.MvcHtmlString

Renders an HTML link element styled as button.

LinkButton ( this html, String text, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Renders an HTML link element styled as button.

LinkButton ( this html, String text, String href ) : System.Web.Mvc.MvcHtmlString

Renders an HTML link element styled as button with CSS-class specified.

LinkButton ( this html, String text, String href, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Renders an HTML link element styled as button with CSS-class specified.

LinkSubmitButton ( this html, String text ) : System.Web.Mvc.MvcHtmlString

Renders an HTML link element styled as button.

LinkSubmitButton ( this html, String text, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Renders an HTML link element styled as button.

LinkSubmitButton ( this html, String text, String href ) : System.Web.Mvc.MvcHtmlString

Renders an HTML link element styled as button with CSS-class specified.

LinkSubmitButton ( this html, String text, String href, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Renders an HTML link element styled as button with CSS-class specified.

Submit ( this html, String text ) : System.Web.Mvc.MvcHtmlString

Renders an HTML submit element.

Submit ( this html, String text, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Renders an HTML submit element.

Private Methods

Method Description
LinkButtonHelper ( String text, String href, RouteValueDictionary htmlAttributes, bool isSubmit ) : System.Web.Mvc.MvcHtmlString
SubmitHelper ( String text, RouteValueDictionary htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Method Details

HiddenSubmit() public static method

Renders an HTML submit element with HiddenSubmitCssClass CSS-class.
Hidden submit used for form submiting on enter press.
public static HiddenSubmit ( this html ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
return System.Web.Mvc.MvcHtmlString

HiddenSubmit() public static method

Renders an HTML submit element with HiddenSubmitCssClass CSS-class.
Hidden submit used for form submiting on enter press.
public static HiddenSubmit ( this html, String text ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
text String The submit text value.
return System.Web.Mvc.MvcHtmlString

LinkButton() public static method

Renders an HTML link element styled as button.
public static LinkButton ( this html, String text ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
text String The button text.
return System.Web.Mvc.MvcHtmlString

LinkButton() public static method

Renders an HTML link element styled as button.
public static LinkButton ( this html, String text, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
text String The button text.
htmlAttributes Object The HTML attributes.
return System.Web.Mvc.MvcHtmlString

LinkButton() public static method

Renders an HTML link element styled as button with CSS-class specified.
public static LinkButton ( this html, String text, String href ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
text String The button text.
href String The link href.
return System.Web.Mvc.MvcHtmlString

LinkButton() public static method

Renders an HTML link element styled as button with CSS-class specified.
public static LinkButton ( this html, String text, String href, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
text String The button text.
href String The link href.
htmlAttributes Object The HTML attributes.
return System.Web.Mvc.MvcHtmlString

LinkSubmitButton() public static method

Renders an HTML link element styled as button.
public static LinkSubmitButton ( this html, String text ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
text String The button text.
return System.Web.Mvc.MvcHtmlString

LinkSubmitButton() public static method

Renders an HTML link element styled as button.
public static LinkSubmitButton ( this html, String text, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
text String The button text.
htmlAttributes Object The HTML attributes.
return System.Web.Mvc.MvcHtmlString

LinkSubmitButton() public static method

Renders an HTML link element styled as button with CSS-class specified.
public static LinkSubmitButton ( this html, String text, String href ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
text String The button text.
href String The link href.
return System.Web.Mvc.MvcHtmlString

LinkSubmitButton() public static method

Renders an HTML link element styled as button with CSS-class specified.
public static LinkSubmitButton ( this html, String text, String href, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
text String The button text.
href String The link href.
htmlAttributes Object The HTML attributes.
return System.Web.Mvc.MvcHtmlString

Submit() public static method

Renders an HTML submit element.
public static Submit ( this html, String text ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
text String The submit text value.
return System.Web.Mvc.MvcHtmlString

Submit() public static method

Renders an HTML submit element.
public static Submit ( this html, String text, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
text String The submit text value.
htmlAttributes Object The HTML attributes.
return System.Web.Mvc.MvcHtmlString

Property Details

ButtonCssClass public_oe static_oe property

Indicates link buttons.
public static String ButtonCssClass
return String

EmptyHref public_oe static_oe property

Empty javascript action (javascript:void(0);).
public static String EmptyHref
return String

HiddenSubmitCssClass public_oe static_oe property

Indicates hidden submit button.
public static String HiddenSubmitCssClass
return String

SubmitButtonCssClass public_oe static_oe property

Indicates link buttons that submits form.
public static String SubmitButtonCssClass
return String