Fieldset

Fieldset

Members

config :object

Source:
Properties:
Name Type Description
fieldNames Array.<string>

Names of fields grouped under this fieldset. Field objects are added to the form, not the fieldset, as it would be easier to keep track of all the fields in the form. Hence the fieldset only saves the names of the fields in it, not the fields themselves.

fieldsetAttributes object

Key-value pairs for attributes in <fieldset> element. Use empty string if the attribute has no value, null to unset the attribute.

fieldsetClasses Array.<string>

List of CSS classes for <fieldset> element.

fieldsetTemplate string

Mustache.js template for rendering HTML for fieldset element.

legend string

Legend for fieldset.

name string

Fieldset name. Overrides name set by form if specified.

Configuration defaults for fieldset.

Type:
  • object

name :string

Source:

Name of fieldset.

Type:
  • string

Methods

(static) new Fieldset(config) → {Fieldset}

Source:

Constructor.

Parameters:
Name Type Description
config object

Fieldset config. See Fieldset.prototype.config.

Returns:
Type
Fieldset

render(templateVariablesopt) → {string}

Source:

Renders HTML for fieldset.

Parameters:
Name Type Attributes Default Description
templateVariables null | object <optional>
null

Optional key-value pairs that can be used to add on to or override current template variables.

Returns:
Type
string