fix(prop): rename prop state to mutable

This commit is contained in:
Adam Bradley
2017-09-02 23:52:34 -05:00
parent b0528b2f8e
commit cc75cda0e8
4 changed files with 8 additions and 11 deletions

View File

@ -38,7 +38,7 @@ export class Alert {
@Prop() subTitle: string; @Prop() subTitle: string;
@Prop() message: string; @Prop() message: string;
@Prop() buttons: AlertButton[] = []; @Prop() buttons: AlertButton[] = [];
@Prop({ mutable: true}) inputs: AlertInput[] = []; @Prop({ mutable: true }) inputs: AlertInput[] = [];
@Prop() enableBackdropDismiss: boolean = true; @Prop() enableBackdropDismiss: boolean = true;
@Prop() enterAnimation: AnimationBuilder; @Prop() enterAnimation: AnimationBuilder;

View File

@ -1,8 +1,7 @@
import { Component, Element, Event, EventEmitter, HostElement, Prop , State} from '@stencil/core'; import { Component, Element, Event, EventEmitter, HostElement, Prop , State} from '@stencil/core';
import { isCheckedProperty } from '../../utils/helpers';
import { Radio } from './radio'; import { Radio } from './radio';
import { isCheckedProperty } from '../../utils/helpers';
/** /**
* @name RadioGroup * @name RadioGroup
@ -80,12 +79,12 @@ export class RadioGroup {
/* /*
* @input {boolean} If true, the user cannot interact with this element. Default false. * @input {boolean} If true, the user cannot interact with this element. Default false.
*/ */
@Prop({ state: true }) disabled: boolean = false; @Prop({ mutable: true }) disabled: boolean = false;
/** /**
* @input {string} the value of the radio. * @input {string} the value of the radio.
*/ */
@Prop({ state: true }) value: string; @Prop({ mutable: true }) value: string;
ionViewWillLoad() { ionViewWillLoad() {

View File

@ -1,8 +1,6 @@
import { Component, CssClassMap, Element, Event, EventEmitter, Listen, Prop, PropDidChange, State } from '@stencil/core'; import { Component, CssClassMap, Element, Event, EventEmitter, Listen, Prop, PropDidChange, State } from '@stencil/core';
import { createThemedClasses } from '../../utils/theme'; import { createThemedClasses } from '../../utils/theme';
import { RadioGroup } from './radio-group';
/** /**
* @description * @description
@ -76,17 +74,17 @@ export class Radio {
/* /*
* @input {boolean} If true, the radio is checked. Default false. * @input {boolean} If true, the radio is checked. Default false.
*/ */
@Prop({ state: true }) checked: boolean = false; @Prop({ mutable: true }) checked: boolean = false;
/* /*
* @input {boolean} If true, the user cannot interact with this element. Default false. * @input {boolean} If true, the user cannot interact with this element. Default false.
*/ */
@Prop({ state: true }) disabled: boolean = false; @Prop({ mutable: true }) disabled: boolean = false;
/** /**
* @input {string} the value of the radio. * @input {string} the value of the radio.
*/ */
@Prop({ state: true }) value: string; @Prop({ mutable: true }) value: string;
ionViewWillLoad() { ionViewWillLoad() {

View File

@ -20,7 +20,7 @@ export class SelectOption {
/** /**
* @input {boolean} If true, the element is selected. * @input {boolean} If true, the element is selected.
*/ */
@Prop({state: true}) selected: boolean = false; @Prop({ mutable: true }) selected: boolean = false;
/** /**
* @input {string} The text value of the option. * @input {string} The text value of the option.