detailspackage.src.content-controller.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-webcomponents Show documentation
Show all versions of vaadin-webcomponents Show documentation
Mvnpm composite: Vaadin webcomponents
/**
* @license
* Copyright (c) 2019 - 2024 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js';
/**
* A controller to manage the default content slot.
*/
export class ContentController extends SlotChildObserveController {
/**
* Override method from `SlotController` to change
* the ID prefix for the default slot content.
*
* @param {HTMLElement} host
* @return {string}
* @protected
* @override
*/
static generateId(host) {
return super.generateId(host, 'content');
}
constructor(host) {
super(host, '', null, { multiple: true });
}
}