lion/packages/ui/components/listbox/src/LionOptions.js
2023-11-08 19:08:54 +01:00

31 lines
559 B
JavaScript

import { LitElement } from 'lit';
import { FormRegistrarPortalMixin } from '@lion/ui/form-core.js';
/**
* LionOptions
*/
export class LionOptions extends FormRegistrarPortalMixin(LitElement) {
static get properties() {
return {
tabIndex: {
type: Number,
reflect: true,
attribute: 'tabindex',
},
};
}
constructor() {
super();
this.tabIndex = 0;
}
connectedCallback() {
super.connectedCallback();
this.setAttribute('role', 'listbox');
}
createRenderRoot() {
return this;
}
}