RenderContext.input
property · packages/mixins-form/src/index.ts:449
readonly input: FieldInputForm / foldkit-mixins-form
interface · packages/mixins-form/src/index.ts:448
interface RenderContext<Message> {
readonly input: FieldInput
readonly control: Control
readonly draft: Draft
readonly change: (value: Draft) => Message
readonly toggled: (choice?: string) => Message
readonly blurred: Message
readonly bundle:
| {
readonly model: unknown
readonly send: (message: unknown) => Message
readonly viewInputs: unknown
}
| undefined
readonly state: ReadonlyArray<
Exclude<
Attribute<Message>,
{
readonly _tag: 'InnerHTML'
}
>
>
readonly attrs: FieldAttrs
readonly slots: SlotBuilders<typeof FieldSlots, Message>
readonly h: HtmlBuilder<Message>
}What a renderer draws one control from.
RenderContext.inputproperty · packages/mixins-form/src/index.ts:449
readonly input: FieldInputRenderContext.controlproperty · packages/mixins-form/src/index.ts:451
readonly control: ControlThe control, whose data is its kind's: narrow it with the kind's is.
RenderContext.draftproperty · packages/mixins-form/src/index.ts:452
readonly draft: DraftRenderContext.changeproperty · packages/mixins-form/src/index.ts:453
readonly change: (value: Draft) => MessageRenderContext.toggledproperty · packages/mixins-form/src/index.ts:460
readonly toggled: (choice?: string) => MessageA press on a flag (no choice) or on one choice of a list, applied to the
draft as it stands when it lands: send it for a press, rather than a
change built from the draft as drawn, which a second press before the
next draw would undo.
RenderContext.blurredproperty · packages/mixins-form/src/index.ts:461
readonly blurred: MessageRenderContext.bundleproperty · packages/mixins-form/src/index.ts:466
readonly bundle:
| {
readonly model: unknown
readonly send: (message: unknown) => Message
readonly viewInputs: unknown
}
| undefinedFor a control backed by a Bundle: its Model, and the Message carrying one of
its own. Its draft is ''.
RenderContext.stateproperty · packages/mixins-form/src/index.ts:478
readonly state: ReadonlyArray<
Exclude<
Attribute<Message>,
{
readonly _tag: 'InnerHTML'
}
>
>The control's id and its accessibility state. Put them on the element that
holds the value: no InnerHTML, so a textarea takes them too.
RenderContext.attrsproperty · packages/mixins-form/src/index.ts:480
readonly attrs: FieldAttrsWhat the key's element takes beyond the base field view.
RenderContext.slotsproperty · packages/mixins-form/src/index.ts:481
readonly slots: SlotBuilders<typeof FieldSlots, Message>RenderContext.hproperty · packages/mixins-form/src/index.ts:482
readonly h: HtmlBuilder<Message>