This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Directive, ElementRef, Input, OnInit, OnChanges } from '@angular/core'; | |
| import { Label } from 'ui/label'; | |
| @Directive({ | |
| selector: '[maxLines]', | |
| }) | |
| export class LabelMaxLinesDirective implements OnInit, OnChanges { | |
| @Input('maxLines') public maxLines: number = 1; | |
| public get nativeView(): Label { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Usage: <Label maxLines="3" .. /> | |
| import { Directive, ElementRef, Input, OnInit, OnChanges } from '@angular/core'; | |
| import { Label } from 'tns-core-modules/ui/label'; | |
| declare const android, NSLineBreakMode: any; | |
| @Directive({ | |
| selector: 'Label[maxLines]', | |
| }) |