itempackage.src.vaadin-item-mixin.d.ts 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
The newest version!
/**
* @license
* Copyright (c) 2017 - 2024 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 { ActiveMixinClass } from '@vaadin/a11y-base/src/active-mixin.js';
import type { DisabledMixinClass } from '@vaadin/a11y-base/src/disabled-mixin.js';
import type { FocusMixinClass } from '@vaadin/a11y-base/src/focus-mixin.js';
/**
* A mixin providing `focused`, `focus-ring`, `active`, `disabled` and `selected`.
*
* `focused`, `active` and `focus-ring` are set as only as attributes.
*/
export declare function ItemMixin>(
base: T,
): Constructor &
Constructor &
Constructor &
Constructor &
T;
export declare class ItemMixinClass {
value: string;
/**
* If true, the item is in selected state.
*/
selected: boolean;
/**
* Used for mixin detection because `instanceof` does not work with mixins.
* e.g. in VaadinListMixin it filters items by using the
* `element._hasVaadinItemMixin` condition.
*/
protected _hasVaadinItemMixin: boolean;
}