跳到主要内容

SafeListEditor

Defined in: packages/rxdb-model/dist/entity-table/editors/safe-list-editor.d.ts:7

Workaround for VTable ListEditor bug: onEnd throws TypeError when element.parentNode is null during keyboard-triggered cell navigation.

Extends​

  • ListEditor

Constructors​

Constructor​

new SafeListEditor(editorConfig): SafeListEditor;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:12

Parameters​

ParameterType
editorConfigListEditorConfig

Returns​

SafeListEditor

Inherited from​

ListEditor.constructor

Properties​

container?​

optional container?: HTMLElement;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:9

Inherited from​

ListEditor.container

editorConfig?​

optional editorConfig?: ListEditorConfig;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:8

Inherited from​

ListEditor.editorConfig

editorType​

editorType: string;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:6

Inherited from​

ListEditor.editorType

element?​

optional element?: HTMLSelectElement;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:10

Inherited from​

ListEditor.element

input?​

optional input?: HTMLInputElement;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:7

Inherited from​

ListEditor.input

successCallback?​

optional successCallback?: () => void;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:11

Returns​

void

Inherited from​

ListEditor.successCallback

Methods​

_bindSelectChangeEvent()​

_bindSelectChangeEvent(): void;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:14

Returns​

void

Inherited from​

ListEditor._bindSelectChangeEvent

adjustPosition()​

adjustPosition(rect): void;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:18

Parameters​

ParameterType
rectRectProps

Returns​

void

Inherited from​

ListEditor.adjustPosition

createElement()​

createElement(value): void;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:13

Parameters​

ParameterType
valuestring

Returns​

void

Inherited from​

ListEditor.createElement

endEditing()​

endEditing(): void;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:19

Returns​

void

Inherited from​

ListEditor.endEditing

getValue()​

getValue(): string;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:16

Returns​

string

Inherited from​

ListEditor.getValue

isEditorElement()​

isEditorElement(target): boolean;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:21

Parameters​

ParameterType
targetHTMLElement

Returns​

boolean

Inherited from​

ListEditor.isEditorElement

onEnd()​

onEnd(): void;

Defined in: packages/rxdb-model/dist/entity-table/editors/safe-list-editor.d.ts:9

调用父类 onEnd,吞掉键盘导航场景下 parentNode 为 null 引发的 TypeError

Returns​

void

Overrides​

ListEditor.onEnd

onStart()​

onStart(__namedParameters): void;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:17

Parameters​

ParameterType
__namedParametersEditContext

Returns​

void

Inherited from​

ListEditor.onStart

setValue()​

setValue(value): void;

Defined in: node_modules/.pnpm/@visactor+vtable-editors@1.26.6/node_modules/@visactor/vtable-editors/cjs/list-editor.d.ts:15

Parameters​

ParameterType
valuestring

Returns​

void

Inherited from​

ListEditor.setValue