PeachBrackets

PeachBrackets.Annotations.FormFieldAttributes

FormFieldAttributes(bool, bool, bool, bool, Nullable<int>, string) Constructor

The HTML form-control attributes that describe how a field behaves rather than what kind it is or what it holds: readonly/disabled/required, which any kind of control can carry, plus maxlength, type=password and placeholder, which only a text control can.

public FormFieldAttributes(bool ReadOnly, bool NoExport, bool Required, bool Password, System.Nullable<int> MaxLength, string? Placeholder);

Parameters

ReadOnly System.Boolean

The readonly attribute, or disabled - a disabled control is not editable either.

NoExport System.Boolean

The disabled attribute: HTML excludes a disabled control from form submission.

Required System.Boolean

The required attribute.

Password System.Boolean

type=password - the value must be echoed unreadably rather than shown.

MaxLength System.Nullable<System.Int32>

The maxlength attribute as a positive character count, or null when absent or not a positive integer.

Placeholder System.String

The placeholder attribute, or null when absent or empty.