Skip to content
Snippets Groups Projects
text-field.component.ts 593 B
Newer Older
  • Learn to ignore specific revisions
  • import { Component } from '@angular/core';
    import { CanvasElementComponent } from '../canvas-element-component.directive';
    
    @Component({
      selector: 'app-text-field',
      template: `
    
        <input *ngIf="$any(elementModel).multiline === false" matInput
               [ngStyle]="style"
               placeholder="{{$any(elementModel).placeholder}}">
        <textarea *ngIf="$any(elementModel).multiline === true" matInput
                  [ngStyle]="style"
                  placeholder="{{$any(elementModel).placeholder}}">
        </textarea>
      `
    
    })
    export class TextFieldComponent extends CanvasElementComponent { }