Documentation
    Preparing search index...

    Interface StringPropertyType

    Configuration dictionary for instantiating a StringProperty. Defines length constraints and character-level validation.

    Parameter Type Description Default
    minLength number Minimum length of the string. 0
    maxLength number Maximum length of the string. 0 (unlimited)
    allowSpaces boolean If false, throws an error if the string contains whitespace. true
    allowDigits boolean If false, throws an error if the string contains digits (0-9). true
    allowLetters boolean If false, throws an error if the string contains letters (a-z, A-Z). true
    allowPattern string A regular expression pattern the string must match. undefined
    fullSearch boolean Indicates to the backend if this field should be indexed for full-text search. false
    interface StringPropertyType {
        allowDigits?: boolean;
        allowLetters?: boolean;
        allowPattern?: string;
        allowSpaces?: boolean;
        defaultValue?: any;
        fullSearch?: boolean;
        htmlType?: PropertyHTMLType;
        id?: string;
        mandatory?: boolean;
        maxLength?: number;
        minLength?: number;
        name: string;
        onChange?: (dao: DataObjectClass<any>) => DataObjectClass<any>;
        parent?: DataObjectClass<any>;
        protected?: boolean;
        type?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    allowDigits?: boolean
    allowLetters?: boolean
    allowPattern?: string
    allowSpaces?: boolean
    defaultValue?: any
    fullSearch?: boolean
    htmlType?: PropertyHTMLType
    id?: string
    mandatory?: boolean
    maxLength?: number
    minLength?: number
    name: string
    onChange?: (dao: DataObjectClass<any>) => DataObjectClass<any>
    parent?: DataObjectClass<any>
    protected?: boolean
    type?: string