Skip to content

Interface: TagElementProps

Defined in: src/tools/ui.ts:532

props of UITool.createElement. See UITool

Extends

Properties

attributes?

ts
optional attributes: object;

Defined in: src/tools/ui.ts:475

Set with elem.setAttribute()

Index Signature

ts
[key: string]: undefined | null | string | number | boolean

Inherited from

ElementProps.attributes


checkExistenceParent?

ts
optional checkExistenceParent: HTMLElement;

Defined in: src/tools/ui.ts:507

Existence check will be processed under this element, default document

Inherited from

ElementProps.checkExistenceParent


children?

ts
optional children: TagElementProps[];

Defined in: src/tools/ui.ts:491

Child elements. Will be created and appended to this element.

Inherited from

ElementProps.children


classList?

ts
optional classList: string[];

Defined in: src/tools/ui.ts:457

classList

Inherited from

ElementProps.classList


customCheck()?

ts
optional customCheck: (doc, options) => boolean;

Defined in: src/tools/ui.ts:513

Custom check hook. If it returns false, return undefined and do not do anything.

Parameters

doc

Document

options

ElementProps

Returns

boolean

Inherited from

ElementProps.customCheck


directAttributes?

ts
optional directAttributes: object;

Defined in: src/tools/ui.ts:469

Index Signature

ts
[key: string]: undefined | null | string | number | boolean

Deprecated

Use properties

Inherited from

ElementProps.directAttributes


enableElementDOMLog?

ts
optional enableElementDOMLog: boolean;

Defined in: src/tools/ui.ts:529

Enable elements to be printed to console & Zotero.debug.

Inherited from

ElementProps.enableElementDOMLog


enableElementJSONLog?

ts
optional enableElementJSONLog: boolean;

Defined in: src/tools/ui.ts:525

Enable elements to be printed to console & Zotero.debug.

Inherited from

ElementProps.enableElementJSONLog


enableElementRecord?

ts
optional enableElementRecord: boolean;

Defined in: src/tools/ui.ts:521

Enable elements to be recorded by the toolkit so it can be removed when calling unregisterAll.

Inherited from

ElementProps.enableElementRecord


id?

ts
optional id: string;

Defined in: src/tools/ui.ts:449

id

Inherited from

ElementProps.id


ignoreIfExists?

ts
optional ignoreIfExists: boolean;

Defined in: src/tools/ui.ts:495

Set true to check if the element exists using id. If exists, return this element and do not do anything.

Inherited from

ElementProps.ignoreIfExists


listeners?

ts
optional listeners: object[];

Defined in: src/tools/ui.ts:479

Event listeners

listener

ts
listener: undefined | null | EventListenerOrEventListenerObject | (e) => void;

options?

ts
optional options: boolean | AddEventListenerOptions;

type

ts
type: string;

Inherited from

ElementProps.listeners


namespace?

ts
optional namespace: string;

Defined in: src/tools/ui.ts:453

xul | html | svg

Inherited from

ElementProps.namespace


properties?

ts
optional properties: object;

Defined in: src/tools/ui.ts:465

Set with elem.prop =

Index Signature

ts
[key: string]: unknown

Inherited from

ElementProps.properties


removeIfExists?

ts
optional removeIfExists: boolean;

Defined in: src/tools/ui.ts:503

Set true to check if the element exists using id. If exists, remove and re-create it, then continue with props/attrs/children.

Inherited from

ElementProps.removeIfExists


skipIfExists?

ts
optional skipIfExists: boolean;

Defined in: src/tools/ui.ts:499

Set true to check if the element exists using id. If exists, skip element creation and continue with props/attrs/children.

Inherited from

ElementProps.skipIfExists


styles?

ts
optional styles: Partial<CSSStyleDeclaration>;

Defined in: src/tools/ui.ts:461

styles

Inherited from

ElementProps.styles


subElementOptions?

ts
optional subElementOptions: TagElementProps[];

Defined in: src/tools/ui.ts:517

Deprecated

Use children

Inherited from

ElementProps.subElementOptions


tag

ts
tag: string;

Defined in: src/tools/ui.ts:533

tagName

Overrides

ElementProps.tag