Show / Hide Table of Contents

Method GenerateCheckBox

| Improve this Doc View Source

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

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

Declaration
TagBuilder GenerateCheckBox(ViewContext viewContext, string fullHtmlFieldName, Column column, 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.Nullable<System.Boolean> isChecked

Indicates whether checkbox is checked.

System.Object htmlAttributes

The HTML attributes.

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

The tag helper.

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