C# Class Framework.Mvc.Extensions.ButtonExtensions

Adds methods for generating buttons HTML-markup to HtmlHelper.
Afficher le fichier Open project: coreframework/Core-Framework

Méthodes publiques

Свойство Type Description
ButtonCssClass String
EmptyHref String
HiddenSubmitCssClass String
SubmitButtonCssClass String

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat System.Web.Mvc.MvcHtmlString

HiddenSubmit() public static méthode

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.
Résultat System.Web.Mvc.MvcHtmlString

LinkButton() public static méthode

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.
Résultat System.Web.Mvc.MvcHtmlString

LinkButton() public static méthode

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.
Résultat System.Web.Mvc.MvcHtmlString

LinkButton() public static méthode

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.
Résultat System.Web.Mvc.MvcHtmlString

LinkButton() public static méthode

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.
Résultat System.Web.Mvc.MvcHtmlString

LinkSubmitButton() public static méthode

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.
Résultat System.Web.Mvc.MvcHtmlString

LinkSubmitButton() public static méthode

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.
Résultat System.Web.Mvc.MvcHtmlString

LinkSubmitButton() public static méthode

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.
Résultat System.Web.Mvc.MvcHtmlString

LinkSubmitButton() public static méthode

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.
Résultat System.Web.Mvc.MvcHtmlString

Submit() public static méthode

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.
Résultat System.Web.Mvc.MvcHtmlString

Submit() public static méthode

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.
Résultat System.Web.Mvc.MvcHtmlString

Property Details

ButtonCssClass public_oe static_oe property

Indicates link buttons.
public static String ButtonCssClass
Résultat String

EmptyHref public_oe static_oe property

Empty javascript action (javascript:void(0);).
public static String EmptyHref
Résultat String

HiddenSubmitCssClass public_oe static_oe property

Indicates hidden submit button.
public static String HiddenSubmitCssClass
Résultat String

SubmitButtonCssClass public_oe static_oe property

Indicates link buttons that submits form.
public static String SubmitButtonCssClass
Résultat String