Mixins / foldkit-mixins-ui

SignaturePadView

interface · packages/mixins-ui/src/signaturePad.ts:543

interface SignaturePadView<Message> {
  readonly model: Model
  readonly onMessage: (message: typeof Message.Type) => NoInfer<Message>
  readonly label: string
  readonly fallback?: boolean | undefined
  readonly name?: string | undefined
  readonly words?: Partial<SignaturePadWords> | undefined
  readonly disabled?: boolean | undefined
  readonly style?: NamedStyle<typeof SignaturePadSlots> | undefined
  readonly mixins?: MixinList<Message> | undefined
}

Members

SignaturePadView.model

property · packages/mixins-ui/src/signaturePad.ts:544

readonly model: Model

SignaturePadView.onMessage

property · packages/mixins-ui/src/signaturePad.ts:546

readonly onMessage: (message: typeof Message.Type) => NoInfer<Message>

Lifts the pad's own Messages into the application's.

SignaturePadView.label

property · packages/mixins-ui/src/signaturePad.ts:548

readonly label: string

What is signed, shown and naming the group.

SignaturePadView.fallback

property · packages/mixins-ui/src/signaturePad.ts:550

readonly fallback?: boolean | undefined

Leaves out the typed field; the pad is then for a pointer alone.

SignaturePadView.name

property · packages/mixins-ui/src/signaturePad.ts:556

readonly name?: string | undefined

Submits the signature with a form under this name: the SVG document toSvg(model) writes (the strokes, or the typed name on the line), or an empty value while the pad is empty or has not been measured.

SignaturePadView.words

property · packages/mixins-ui/src/signaturePad.ts:557

readonly words?: Partial<SignaturePadWords> | undefined

SignaturePadView.disabled

property · packages/mixins-ui/src/signaturePad.ts:558

readonly disabled?: boolean | undefined

SignaturePadView.style

property · packages/mixins-ui/src/signaturePad.ts:560

readonly style?: NamedStyle<typeof SignaturePadSlots> | undefined

A style of SignaturePadSlots, for the look.

SignaturePadView.mixins

property · packages/mixins-ui/src/signaturePad.ts:562

readonly mixins?: MixinList<Message> | undefined

Mixins beside the style.