Core API Overview > @adpt/core > Adapt > WidgetPlugin > createExpected
Adapt.WidgetPlugin.createExpected() method
Signature:
createExpected(oldDom: AdaptElementOrNull, newDom: AdaptElementOrNull, createQueryDomains?: boolean): Expected<WidgetElem>;
Parameters
Parameter | Type | Description |
---|---|---|
oldDom | AdaptElementOrNull | |
newDom | AdaptElementOrNull | |
createQueryDomains | boolean |
Returns:
Expected<WidgetElem>