/
githubmirror
/
ionic-framework
Обзор
Документация
Войти
/
githubmirror
/
ionic-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/src/components/select-option/select-option.tsx
31 строка
854 B
Liam DeBeasi
lint(eslint): migrate to eslint and prettier (#25046)
04 апр 2022, 18:12
Не верифицирован
04 апр 2022, 18:12
5676bab
Код
Авторство
О чём код?
import type { ComponentInterface } from '@stencil/core'; import { Component, Element, Host, Prop, h } from '@stencil/core'; import { getIonMode } from '../../global/ionic-global'; @Component({ tag: 'ion-select-option', shadow: true, styleUrl: 'select-option.scss', }) export class SelectOption implements ComponentInterface { private inputId = `ion-selopt-${selectOptionIds++}`; @Element() el!: HTMLElement; /** * If `true`, the user cannot interact with the select option. This property does not apply when `interface="action-sheet"` as `ion-action-sheet` does not allow for disabled buttons. */ @Prop() disabled = false; /** * The text value of the option. */ @Prop() value?: any | null; render() { return <Host role="option" id={this.inputId} class={getIonMode(this)}></Host>; } } let selectOptionIds = 0;