All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.controller-mixin.d.ts Maven / Gradle / Ivy

There is a newer version: 24.5.3
Show newest version
/**
 * @license
 * Copyright (c) 2021 - 2023 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
import type { Constructor } from '@open-wc/dedupe-mixin';
import type { ReactiveController } from 'lit';

/**
 * A mixin for connecting controllers to the element.
 */
export declare function ControllerMixin>(
  superclass: T,
): Constructor & T;

export declare class ControllerMixinClass {
  /**
   * Registers a controller to participate in the element update cycle.
   */
  protected addController(controller: ReactiveController): void;

  /**
   * Removes a controller from the element.
   */
  protected removeController(controller: ReactiveController): void;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy