package.src.slot-child-observe-controller.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of component-base Show documentation
Show all versions of component-base Show documentation
Vaadin component base mixins
/**
* @license
* Copyright (c) 2022 - 2023 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { SlotController } from './slot-controller.js';
/**
* A controller that observes slotted element mutations, especially ID attribute
* and the text content, and fires an event to notify host element about those.
*/
export class SlotChildObserveController extends SlotController {
/**
* Setup the mutation observer on the node to update ID and notify host.
* Node doesn't get observed automatically until this method is called.
*/
protected observeNode(node: Node): void;
/**
* Override to restore default node when a custom one is removed.
*/
protected restoreDefaultNode(): void;
/**
* Override to update default node text on property change.
*/
protected updateDefaultNode(node: Node): void;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy