Show / Hide Table of Contents

Method GenerateRadioButton

| Improve this Doc View Source

GenerateRadioButton(ViewContext, String, Column, Object, Nullable<Boolean>, Object)

Generate a <input type="radio".../> element.

Declaration
TagBuilder GenerateRadioButton(ViewContext viewContext, string fullHtmlFieldName, Column column, object value, bool? isChecked, object htmlAttributes)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext

The view context.

System.String fullHtmlFieldName

The full HTML field name.

Column column

The column.

System.Object value

The value.

System.Nullable<System.Boolean> isChecked

Indicates whether radio button is checked.

System.Object htmlAttributes

The HTML attributes.

Returns
Type Description
Microsoft.AspNetCore.Mvc.Rendering.TagBuilder

The tag builder.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest