fix(core): update
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import * as plugins from './domtools.plugins.js';
|
||||
import { DomTools } from './domtools.classes.domtools.js';
|
||||
import { DomTools, IDomToolsContructorOptions } from './domtools.classes.domtools.js';
|
||||
import { scrollBarStyles, globalBaseStyles } from './domtools.css.basestyles.js';
|
||||
|
||||
import { html, LitElement, css, unsafeCSS } from 'lit';
|
||||
@ -40,8 +40,8 @@ export const styles = html`
|
||||
* a basic setup for elements
|
||||
* makes sure everything is in check
|
||||
*/
|
||||
export const setup = async (elementArg?: LitElement): Promise<DomTools> => {
|
||||
const domTools = await DomTools.setupDomTools();
|
||||
export const setup = async (elementArg?: LitElement, optionsArg: IDomToolsContructorOptions = {}): Promise<DomTools> => {
|
||||
const domTools = await DomTools.setupDomTools(optionsArg);
|
||||
|
||||
if (elementArg) {
|
||||
// lets do something with the element
|
||||
|
Reference in New Issue
Block a user