本文へ移動

@eightkk/vue-weave / core / PropertyInspectorFieldSlot

Interface: PropertyInspectorFieldSlot<T> ​

Defined in: src/core/diagramEditor.ts:238

Props of a PropertyInspector field slot (field-<id>), which replaces the control of one field. Call commit with a value or commitText with editor text to propose a change (both run the field checks and validateChange and return whether the change was proposed or the value was unchanged), and cancel to drop an error or draft.

Type Parameters ​

T ​

T extends InspectorItem = InspectorItem

Properties ​

cancel ​

cancel: () => void

Defined in: src/core/diagramEditor.ts:254

Returns ​

void


commit ​

commit: (value) => boolean

Defined in: src/core/diagramEditor.ts:252

Parameters ​

value ​

FieldValue

Returns ​

boolean


commitText ​

commitText: (text) => boolean

Defined in: src/core/diagramEditor.ts:253

Parameters ​

text ​

string

Returns ​

boolean


describedBy? ​

optional describedBy?: string

Defined in: src/core/diagramEditor.ts:251

The IDs of the description and error, for aria-describedby.


error? ​

optional error?: string

Defined in: src/core/diagramEditor.ts:246

The parse, check or rejection message shown under the field.


field ​

field: InspectorField<T>

Defined in: src/core/diagramEditor.ts:239


inputId ​

inputId: string

Defined in: src/core/diagramEditor.ts:249

The ID that the field label points to; give it to your control.


item ​

item: T

Defined in: src/core/diagramEditor.ts:240


readonly ​

readonly: boolean

Defined in: src/core/diagramEditor.ts:247


text ​

text: string

Defined in: src/core/diagramEditor.ts:244

The value as editor text.


value ​

value: FieldValue

Defined in: src/core/diagramEditor.ts:242

The current raw value of the field.

MIT ライセンスで公開しています。