STRUCT
CheckboxFormField
Contents
- Properties
namelabelplaceholdercheckedreadonlyvalue
 - Methods
init(from:)encode(to:)==(_:_:)
 
public struct CheckboxFormField: FormField
A checkbox form field.
Properties
name
public let name: String
label
public let label: Message?
placeholder
public let placeholder: Message?
checked
public let checked: Bool
The initial checked state.
readonly
public let readonly: Bool
Whether the initial checked state is changeable.
value
public let value: String?
An optional String that represents the value of the field.
Methods
init(from:)
public init(from decoder: Decoder) throws
Parameters
| Name | Description | 
|---|---|
| decoder | The decoder to read data from. | 
encode(to:)
public func encode(to encoder: Encoder) throws
Parameters
| Name | Description | 
|---|---|
| encoder | The encoder to write data to. | 
==(::)
public static func == (lhs: CheckboxFormField, rhs: CheckboxFormField) -> Bool
Returns a Bool value that indicates whether the receiver and a given object are equal.