package.src.vaadin-time-picker-item.js Maven / Gradle / Ivy
/**
* @license
* Copyright (c) 2018 - 2024 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
import { ComboBoxItemMixin } from '@vaadin/combo-box/src/vaadin-combo-box-item-mixin.js';
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
/**
* An item element used by the `` dropdown.
*
* ### Styling
*
* The following shadow DOM parts are available for styling:
*
* Part name | Description
* ------------|--------------
* `checkmark` | The graphical checkmark shown for a selected item
* `content` | The element that wraps the item content
*
* The following state attributes are exposed for styling:
*
* Attribute | Description
* -------------|-------------
* `selected` | Set when the item is selected
* `focused` | Set when the item is focused
*
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
*
* @customElement
* @mixes ComboBoxItemMixin
* @mixes ThemableMixin
* @mixes DirMixin
* @private
*/
export class TimePickerItem extends ComboBoxItemMixin(ThemableMixin(DirMixin(PolymerElement))) {
static get is() {
return 'vaadin-time-picker-item';
}
static get template() {
return html`
`;
}
}
defineCustomElement(TimePickerItem);
© 2015 - 2024 Weber Informatics LLC | Privacy Policy