| 31 | shadow: true, |
| 32 | }) |
| 33 | export class Item implements ComponentInterface, AnchorInterface, ButtonInterface { |
| 34 | private labelColorStyles = {}; |
| 35 | private itemStyles = new Map<string, CssClassMap>(); |
| 36 | private inheritedAriaAttributes: Attributes = {}; |
| 37 | |
| 38 | @Element() el!: HTMLIonItemElement; |
| 39 | |
| 40 | @State() multipleInputs = false; |
| 41 | @State() focusable = true; |
| 42 | @State() isInteractive = false; |
| 43 | |
| 44 | /** |
| 45 | * The color to use from your application's color palette. |
| 46 | * Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. |
| 47 | * For more information on colors, see [theming](/docs/theming/basics). |
| 48 | */ |
| 49 | @Prop({ reflect: true }) color?: Color; |
| 50 | |
| 51 | /** |
| 52 | * If `true`, a button tag will be rendered and the item will be tappable. |
| 53 | */ |
| 54 | @Prop() button = false; |
| 55 | |
| 56 | /** |
| 57 | * If `true`, a detail arrow will appear on the item. Defaults to `false` unless the `mode` |
| 58 | * is `ios` and an `href` or `button` property is present. |
| 59 | */ |
| 60 | @Prop() detail?: boolean; |
| 61 | |
| 62 | /** |
| 63 | * The icon to use when `detail` is set to `true`. |
| 64 | */ |
| 65 | @Prop() detailIcon = chevronForward; |
| 66 | |
| 67 | /** |
| 68 | * If `true`, the user cannot interact with the item. |
| 69 | */ |
| 70 | @Prop({ reflect: true }) disabled = false; |
| 71 | |
| 72 | /** |
| 73 | * This attribute instructs browsers to download a URL instead of navigating to |
| 74 | * it, so the user will be prompted to save it as a local file. If the attribute |
| 75 | * has a value, it is used as the pre-filled file name in the Save prompt |
| 76 | * (the user can still change the file name if they want). |
| 77 | */ |
| 78 | @Prop() download: string | undefined; |
| 79 | |
| 80 | /** |
| 81 | * Contains a URL or a URL fragment that the hyperlink points to. |
| 82 | * If this property is set, an anchor tag will be rendered. |
| 83 | */ |
| 84 | @Prop() href: string | undefined; |
| 85 | |
| 86 | /** |
| 87 | * Specifies the relationship of the target object to the link object. |
| 88 | * The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types). |
| 89 | */ |
| 90 | @Prop() rel: string | undefined; |
nothing calls this directly
no test coverage detected