UNPKG

@logo-elements/component-base

Version:

A set of mixins used by Logo Elements which is extended from Vaadin components.

35 lines (31 loc) 1.1 kB
/** * @license * Copyright LOGO YAZILIM SANAYİ VE TİCARET A.Ş. * * Save to the extent permitted by law, you may not use, copy, modify, * distribute or create derivative works of this material or any part * of it without the prior written consent of LOGO YAZILIM SANAYİ VE TİCARET A.Ş. Limited. * Any reproduction of this material must contain this notice. */ // @ts-ignore import { Constructor } from '@open-wc/dedupe-mixin'; // @ts-ignore import { ReactiveController, ReactiveControllerHost } from 'lit'; /** * A mixin for connecting controllers to the element. */ export declare function ControllerMixin<T extends Constructor<HTMLElement>>( superclass: T ): T & Constructor<ControllerMixinClass>; export declare class ControllerMixinClass implements Pick<ReactiveControllerHost, 'addController' | 'removeController'> { /** * Registers a controller to participate in the element update cycle. */ addController(controller: ReactiveController): void; /** * Removes a controller from the element. */ removeController(controller: ReactiveController): void; }