kopia lustrzana https://github.com/shoelace-style/shoelace
Reflect menu item props
rodzic
3130ea1c39
commit
a566e6b48d
|
@ -22,16 +22,16 @@ import { Component, Event, EventEmitter, Prop, Watch, h } from '@stencil/core';
|
|||
})
|
||||
export class MenuItem {
|
||||
/** Set to true to draw the item in a checked state. */
|
||||
@Prop() checked = false;
|
||||
@Prop({ reflect: true }) checked = false;
|
||||
|
||||
/** Set to true to draw the menu item in an active state. */
|
||||
@Prop() active = false;
|
||||
@Prop({ reflect: true }) active = false;
|
||||
|
||||
/** A unique value to store in the menu item. */
|
||||
@Prop() value = '';
|
||||
@Prop({ reflect: true }) value = '';
|
||||
|
||||
/** Set to true to draw the menu item in a disabled state. */
|
||||
@Prop() disabled = false;
|
||||
@Prop({ reflect: true }) disabled = false;
|
||||
|
||||
@Watch('active')
|
||||
handleActiveChange() {
|
||||
|
|
Ładowanie…
Reference in New Issue