Skip to content

Commit

Permalink
feat(linear-progress): remove is* prefix from properties
Browse files Browse the repository at this point in the history
BREAKING CHANGE: rename mdcLinearProgress properties
isIndeterminate, isReversed, isClosed to
indeterminate, reversed, closed
  • Loading branch information
gjdev committed May 22, 2018
1 parent 51aef91 commit 036c04f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -104,11 +104,11 @@ export class MdcLinearProgressDirective implements AfterContentInit, OnDestroy {
* that the exact progress on a measured task is not known.
*/
@Input() @HostBinding('class.' + CLASS_INDETERMINATE)
get isIndeterminate() {
get indeterminate() {
return this._indeterminate;
}

set isIndeterminate(value: any) {
set indeterminate(value: any) {
let newValue = asBoolean(value);
if (newValue !== this._indeterminate) {
this._indeterminate = newValue;
Expand All @@ -126,11 +126,11 @@ export class MdcLinearProgressDirective implements AfterContentInit, OnDestroy {
* Reverses the direction of the linear progress indicator.
*/
@Input() @HostBinding('class.' + CLASS_REVERSED)
get isReversed() {
get reversed() {
return this._reverse;
}

set isReversed(value: any) {
set reversed(value: any) {
this._reverse = asBoolean(value);
if (this._initialized)
this.foundation.setReverse(this._reverse);
Expand Down Expand Up @@ -169,11 +169,11 @@ export class MdcLinearProgressDirective implements AfterContentInit, OnDestroy {
* when set to false this opens (animates into view) the progress bar.
*/
@Input()
get isClosed() {
get closed() {
return this._closed;
}

set isClosed(value: any) {
set closed(value: any) {
let newValue = asBoolean(value);
if (newValue !== this._closed) {
this._closed = newValue;
Expand Down
@@ -1,6 +1,6 @@
<fieldset class="blox-snippet snippet-skip-line">
<div mdcLinearProgress [progressValue]="progress" [bufferValue]="buffer"
[isIndeterminate]="indeterminate" [isReversed]="reversed" [isClosed]="closed"></div>
[indeterminate]="indeterminate" [reversed]="reversed" [closed]="closed"></div>
<p>Customize progress:</p>
<div>
<div mdcSlider aria-label="Change Progress" mdcScrollbarResize
Expand Down

0 comments on commit 036c04f

Please sign in to comment.