akveo / akveo/ng2-smart-table

Custom Render Component not working

Open
#602 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
867
PR merge metrics
No merged PRs in 30d

Description

Here is my code..

import { Component, Input, OnInit } from '@angular/core';

import { ViewCell } from 'ng2-smart-table';

@Component({
template: `
{{renderValue}}
`,
})
export class CustomRenderComponent implements ViewCell, OnInit {

renderValue: string;

@Input() value: string | number;
@Input() rowData: any;

ngOnInit() {
this.renderValue = this.value.toString().toUpperCase();
}

}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.