Interface ModConfigFieldText

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

Since

D2RMM v1.4.0

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

Hierarchy

  • ModConfigFieldBase
    • ModConfigFieldText

Properties

defaultValue: StringBinding<null | string>

The default value of the text field. Used when the user has no saved value for this field.

When used as a Binding, it is evaluated once at load time against the saved config — it does NOT re-evaluate reactively at runtime. For reactive value forcing, use overrideValue instead.

Since

D2RMM v1.9.0 as a Binding<>

Since

D2RMM v1.4.0

description?: string

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

Since

D2RMM v1.0.0

id: string

The unique identifier of the configuration element.

name: string

The name of the field.

Since

D2RMM v1.0.0

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.

Since

D2RMM v1.8.0

type: "text"

The type of the configuration element.

Since

D2RMM v1.4.0

visible?: Binding<boolean>

Determines if the field is visible or not.

Since

D2RMM v1.8.0