RenderContext.input
property · packages/mixins-form/src/index.ts:335
readonly input: FieldInputForm / foldkit-mixins-form
interface · packages/mixins-form/src/index.ts:334
interface RenderContext<Message> {
readonly input: FieldInput
readonly control: Control
readonly draft: Draft
readonly change: (value: Draft) => Message
readonly blurred: Message
readonly bundle:
| {
readonly model: unknown
readonly send: (message: unknown) => Message
readonly viewInputs: unknown
}
| undefined
readonly state: ReadonlyArray<Attribute<Message>>
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:335
readonly input: FieldInputRenderContext.controlproperty · packages/mixins-form/src/index.ts:337
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:338
readonly draft: DraftRenderContext.changeproperty · packages/mixins-form/src/index.ts:339
readonly change: (value: Draft) => MessageRenderContext.blurredproperty · packages/mixins-form/src/index.ts:340
readonly blurred: MessageRenderContext.bundleproperty · packages/mixins-form/src/index.ts:345
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:354
readonly state: ReadonlyArray<Attribute<Message>>The control's id and its accessibility state. Put them on the element that holds the value.
RenderContext.attrsproperty · packages/mixins-form/src/index.ts:356
readonly attrs: FieldAttrsWhat the key's element takes beyond the base field view.
RenderContext.slotsproperty · packages/mixins-form/src/index.ts:357
readonly slots: SlotBuilders<typeof FieldSlots, Message>RenderContext.hproperty · packages/mixins-form/src/index.ts:358
readonly h: HtmlBuilder<Message>