wv-field-checkbox-grid

Purpose

<wv-field-checkbox-grid/>. Provides the ability to render grid like checkbox selections.

Properties

Important: All <wv-field-*> helpers inherit a "base tag helper" properties. In the following list are presented only the properties that this tag helper adds or alters. Not all base tag helper properties can be implemented by this tag helper too.

name description
columns

object type: List<SelectOption>

default value: new List<SelectOption>()

is required: FALSE

The object is used for generating the grid's columns and determining the selections. The Value property is used in determination, The Label property is used as a column label.

rows

object type: List<SelectOption>

default value: new List<SelectOption>()

is required: FALSE

The object is used for generating the grid's rows and determining the selections. The Value property is used in determination, The Label property is used as a row label.

text-true

object type: string

default value: selected

is required: FALSE

The text presented as label for all checkboxes in the grid.

value

object type: string

default value: string.Empty

is required: FALSE

the provided string/json value to the field will be deserialized to a List<KeyStringList>. This object is in general shows for a row value, which column values are selected.

Example

@{
	var chkValues =  JsonConvert.Serialize(new List<KeyStringList>());
}
<wv-field-checkbox-grid value="@chkValues"></wv-field-checkbox>