Interface ModConfigFieldText

Represents a text configuration field that will be represented as a text input in the configuration UI.

interface ModConfigFieldText {
    defaultValue: string;
    description?: string;
    id: string;
    name: string;
    overrideValue?: Binding<null | string>;
    type: "text";
    visible?: Binding<boolean>;
}

Hierarchy

  • ModConfigFieldBase
    • ModConfigFieldText

Properties

defaultValue: string

The default value of the text field.

description?: string

The description for the field that appears in a help tooltip.

id: string

The unique identifier of the configuration element.

name: string

The name of the field.

overrideValue?: Binding<null | string>

The override value of the text field. If this value is anything other than null, it will override the current value. If the value is overridden, it will also be read only.

type: "text"

The type of the configuration element.

visible?: Binding<boolean>

Determines if the field is visible or not.