Core API Overview > @adpt/core > Adapt > WidgetPlugin
Adapt.WidgetPlugin class
Signature:
export declare abstract class WidgetPlugin<WidgetElem extends AdaptElement, WidgetObs extends object, QDomain extends QueryDomain<any, any>> implements Plugin<Observed<WidgetObs>>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
computeChanges | ComputeChanges<WidgetElem, WidgetObs> | ||
createWidget | (domain: QDomain, deployID: string, resource: WidgetPair<WidgetElem, WidgetObs>) => Promise<void> | ||
dataDir_ | string | ||
dataDir | string | ||
deployID_ | string | ||
deployID | string | ||
destroyWidget | (domain: QDomain, deployID: string, resource: WidgetPair<WidgetElem, WidgetObs>) => Promise<void> | ||
findElems | (dom: AdaptElementOrNull ) => WidgetElem[] | ||
getElemQueryDomain | (el: WidgetElem) => QDomain | ||
getObservations | (domain: QDomain, deployID: string, elemsInQDomain: WidgetChange<WidgetElem>[]) => Promise<WidgetObs[]> | ||
getWidgetIdFromElem | (el: WidgetElem) => WidgetId | ||
getWidgetIdFromObs | (obs: WidgetObs) => WidgetId | ||
getWidgetTypeFromElem | (el: WidgetElem) => string | ||
getWidgetTypeFromObs | (obs: WidgetObs) => string | ||
log_ | Logger | ||
log | (arg: any, ...args: any[]) => void | ||
modifyWidget | (domain: QDomain, deployID: string, resource: WidgetPair<WidgetElem, WidgetObs>) => Promise<void> | ||
queryDomains | Map<string, QDomain> |
Methods
Method | Modifiers | Description |
---|---|---|
analyze(oldDom, dom, obs) | ||
createExpected(oldDom, newDom, createQueryDomains) | ||
finish() | ||
observe(oldDom, dom) | ||
queryDomain(key) | ||
start(options) | ||
translatePairs(actions, pairs, actionType, action) | Translate WidgetPairs into plugin Actions | |
widgetInfo(pair) |