@@ -122,7 +122,7 @@ export class MdcToolbarMenuIcon {
122
122
}
123
123
124
124
/**
125
- * For <code>isFixed </code> toolbars, this directive should be put on the page's
125
+ * For <code>fixed </code> toolbars, this directive should be put on the page's
126
126
* content wrapper element, and the exported directive should be assigned to the
127
127
* <code>fixedAdjust</code> property of the <code>MdcToolbarDirective</code>.
128
128
* This will make the toolbar aware of the content wrapper, so that the top marging
@@ -150,7 +150,7 @@ export class MdcToolbarDirective implements AfterViewInit, OnDestroy {
150
150
@HostBinding ( 'class.mdc-toolbar' ) _hostClass = true ;
151
151
/**
152
152
* Assign a <code>MdcToolbarFixedAdjustDirective</code> put on the main
153
- * content of the page. Required for <code>isFixed </code> toolbars,
153
+ * content of the page. Required for <code>fixed </code> toolbars,
154
154
* to properly layout the toolbar and the content when users scroll.
155
155
*/
156
156
@Input ( ) fixedAdjust : MdcToolbarFixedAdjustDirective ;
@@ -267,42 +267,42 @@ export class MdcToolbarDirective implements AfterViewInit, OnDestroy {
267
267
* If set to a value other than false, the toolbar will be fixed to the top of the
268
268
* screen (or viewport).
269
269
*/
270
- @Input ( ) @HostBinding ( 'class.mdc-toolbar--fixed' ) get isFixed ( ) {
270
+ @Input ( ) @HostBinding ( 'class.mdc-toolbar--fixed' ) get fixed ( ) {
271
271
return this . _fixed ;
272
272
}
273
273
274
- set isFixed ( val : any ) {
274
+ set fixed ( val : any ) {
275
275
let newValue = asBoolean ( val ) ;
276
276
if ( this . _initialized && this . _fixed !== newValue )
277
- throw new Error ( 'isFixed directive should not be changed after the mdcToolbar is initialized' ) ;
277
+ throw new Error ( 'fixed property should not be changed after the mdcToolbar is initialized' ) ;
278
278
this . _fixed = newValue ;
279
279
}
280
280
281
281
/**
282
- * If set to a value other than false, and used in combination with <code>isFixed </code>
282
+ * If set to a value other than false, and used in combination with <code>fixed </code>
283
283
* the toolbar will become a waterfall toolbar.
284
284
* A waterfall toolbar is initially static and has no elevation, but when content scrolls under it,
285
285
* the toolbar becomes fixed and gains elevation.
286
286
*/
287
- @Input ( ) @HostBinding ( 'class.mdc-toolbar--waterfall' ) get isWaterfall ( ) {
287
+ @Input ( ) @HostBinding ( 'class.mdc-toolbar--waterfall' ) get waterfall ( ) {
288
288
return this . _waterfall ;
289
289
}
290
290
291
- set isWaterfall ( val : any ) {
291
+ set waterfall ( val : any ) {
292
292
this . _waterfall = asBoolean ( val ) ;
293
293
}
294
294
295
295
/**
296
296
* If set to a value other than false, fixed toolbars will anchor only the last row to the top.
297
297
*/
298
- @Input ( ) @HostBinding ( 'class.mdc-toolbar--fixed-lastrow-only' ) get isFixedLastrowOnly ( ) {
298
+ @Input ( ) @HostBinding ( 'class.mdc-toolbar--fixed-lastrow-only' ) get fixedLastrowOnly ( ) {
299
299
return this . _fixedLastRowOnly ;
300
300
}
301
301
302
- set isFixedLastrowOnly ( val : any ) {
302
+ set fixedLastrowOnly ( val : any ) {
303
303
let newValue = asBoolean ( val ) ;
304
304
if ( this . _initialized && this . _fixedLastRowOnly !== newValue )
305
- throw new Error ( 'isFixedLastrowOnly directive should not be changed after the mdcToolbar is initialized' ) ;
305
+ throw new Error ( 'fixedLastrowOnly property should not be changed after the mdcToolbar is initialized' ) ;
306
306
this . _fixedLastRowOnly = newValue ;
307
307
}
308
308
@@ -318,14 +318,14 @@ export class MdcToolbarDirective implements AfterViewInit, OnDestroy {
318
318
* <code>--mdc-toolbar-ratio-to-extend-flexible</code>.
319
319
* </blockquote>
320
320
*/
321
- @Input ( ) @HostBinding ( 'class.mdc-toolbar--flexible' ) get isFlexible ( ) {
321
+ @Input ( ) @HostBinding ( 'class.mdc-toolbar--flexible' ) get flexible ( ) {
322
322
return this . _flexible ;
323
323
}
324
324
325
- set isFlexible ( val : any ) {
325
+ set flexible ( val : any ) {
326
326
let newValue = asBoolean ( val ) ;
327
327
if ( this . _initialized && this . _flexible !== newValue )
328
- throw new Error ( 'isFlexible directive should not be changed after the mdcToolbar is initialized' ) ;
328
+ throw new Error ( 'flexible property should not be changed after the mdcToolbar is initialized' ) ;
329
329
this . _flexible = newValue ;
330
330
}
331
331
@@ -336,14 +336,14 @@ export class MdcToolbarDirective implements AfterViewInit, OnDestroy {
336
336
* Flexible Toolbar documention
337
337
* </a>.
338
338
*/
339
- @Input ( ) @HostBinding ( 'class.mdc-toolbar--flexible-default-behavior' ) get isFlexibleDefaultBehavior ( ) {
339
+ @Input ( ) @HostBinding ( 'class.mdc-toolbar--flexible-default-behavior' ) get flexibleDefaultBehavior ( ) {
340
340
return this . _flexibleDefaultBehavior ;
341
341
}
342
342
343
- set isFlexibleDefaultBehavior ( val : any ) {
343
+ set flexibleDefaultBehavior ( val : any ) {
344
344
let newValue = asBoolean ( val ) ;
345
345
if ( this . _initialized && this . _flexibleDefaultBehavior !== newValue )
346
- throw new Error ( 'isFlexibleDefaultBehavior directive should not be changed after the mdcToolbar is initialized' ) ;
346
+ throw new Error ( 'flexibleDefaultBehavior property should not be changed after the mdcToolbar is initialized' ) ;
347
347
this . _flexibleDefaultBehavior = newValue ;
348
348
}
349
349
0 commit comments