BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
In app.style.css
.e-attr {
background: #d7f0f4;
} |
{
field: taskID, headerText: 'Task ID', customAttributes: {class: 'e-attr'}, width: '90'
}
|
In app.component.ts
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { sampleData } from './datasource';
@Component({
selector: 'app-root',
template: `<ejs-treegrid [dataSource]='data' height='300' [treeColumnIndex]='1' childMapping='subtasks' >
<e-columns>
<e-column field='taskID' headerText='Task ID' [customAttributes]="{class: 'e-attr'}"
textAlign='Right' width=90></e-column>
--------------------------
</e-columns>
</ejs-treegrid>`,
styleUrls: ['app.style.css'],
encapsulation: ViewEncapsulation.None,
})
export class AppComponent implements OnInit {
------------------
} |