Xivgear Types Documentation
    Preparing search index...

    Interface FbctArgs<ObjType, FieldType>

    interface FbctArgs<ObjType, FieldType> {
        event?: keyof HTMLElementEventMap;
        id?: string;
        inputMode?: string;
        pattern?: string;
        postValidators?: FbctPostValidator<ObjType, FieldType>[];
        preValidators?: FbctPreValidator<ObjType>[];
        type?: string;
    }

    Type Parameters

    • ObjType
    • FieldType

    Hierarchy (View Summary)

    Index

    Properties

    event?: keyof HTMLElementEventMap

    Which event to hook. e.g. 'input' for when any input is entered (the default), or 'change'.

    id?: string

    HTML ID to assign to this element.

    inputMode?: string

    The HTML input inputmode. Common values include 'decimal', 'email', 'none', 'numeric', 'search', 'tel', 'text', and 'url'.

    pattern?: string

    Sets the pattern attribute

    postValidators?: FbctPostValidator<ObjType, FieldType>[]

    Validation to be run against the converted input string, before setting the field.

    Return undefined to indicate no validation error, or return a string containing a validation message.

    preValidators?: FbctPreValidator<ObjType>[]

    Validations to be run against the raw input string, before any conversion.

    Return undefined to indicate no validation error, or return a string containing a validation message.

    type?: string

    The HTML input type. You may wish to change this to 'number' if dealing with numerical fields.