summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-cell-editor/rdp-textarea-editor/rdp-textarea-editor.component.ts
blob: afe67873aa7421f6da79f56e838929e7bc131913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { Component, OnInit, Input } from '@angular/core';

@Component({
  selector: 'rdp-textarea-editor',
  styleUrls: ['./rdp-textarea-editor.component.scss'],
  template:`
    <textarea style="border:solid 1px;" 
        [(ngModel)]="columnValue" matInput placeholder="Textarea">
    </textarea>
  `
})
export class RdpTextareaEditorComponent implements OnInit {

  @Input() rowdata :any;
  @Input() columntitle: any
  columnValue: any;

  
  constructor() { }

  ngOnInit() {
    console.log("RdpTextareaEditorComponent Row Data ::: ",this.rowdata);
    let rowObj = JSON.parse(this.rowdata);
    let column = this.columntitle;
    this.columnValue = rowObj[column];
  }

}