Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Commit

Permalink
feat(textfield): Add [dense] bool property to shrink font size/height.
Browse files Browse the repository at this point in the history
  • Loading branch information
trimox committed Jul 25, 2017
1 parent e440d73 commit df4443d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/textfield/textfield.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export class TextfieldComponent implements AfterViewInit, OnDestroy {
this._foundation.setDisabled(value);
}
}
@Input() dense: boolean;
@Input() required: boolean;
@Input() labelId: string;
@Input() label: string;
Expand All @@ -105,6 +106,9 @@ export class TextfieldComponent implements AfterViewInit, OnDestroy {
@HostBinding('class.mdc-textfield--fullwidth') get classFullwidth(): string {
return this.fullwidth ? 'mdc-textfield--fullwidth' : '';
}
@HostBinding('class.mdc-textfield--dense') get classDense(): string {
return this.dense ? 'mdc-textfield--dense' : '';
}
@ViewChild('input') public inputEl: ElementRef;
@ViewChild('inputlabel') public inputLabel: ElementRef;

Expand Down

0 comments on commit df4443d

Please sign in to comment.