mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-03-12 08:32:34 +01:00
feat(smart-table): install ng2-smart-table
This commit is contained in:
parent
c79ac94a66
commit
120ffe7d13
7 changed files with 727 additions and 0 deletions
|
|
@ -0,0 +1,34 @@
|
|||
import {Component, ViewEncapsulation} from '@angular/core';
|
||||
|
||||
import {BasicTablesService} from './basicTables.service';
|
||||
import {BaCard} from '../../../../theme/components';
|
||||
|
||||
import {NG2_SMART_TABLE_DIRECTIVES, LocalDataSource} from 'ng2-smart-table';
|
||||
|
||||
@Component({
|
||||
selector: 'basic-tables',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
directives: [BaCard, NG2_SMART_TABLE_DIRECTIVES],
|
||||
styles: [require('./smartTables.scss')],
|
||||
template: require('./smartTables.html'),
|
||||
providers: [BasicTablesService]
|
||||
})
|
||||
export class SmartTables {
|
||||
|
||||
settings = {
|
||||
attr: {
|
||||
class: 'table'
|
||||
},
|
||||
columns: {
|
||||
id: {
|
||||
title: 'ID',
|
||||
type: 'number'
|
||||
},
|
||||
name: {
|
||||
title: 'Product Name',
|
||||
type: 'string'
|
||||
}
|
||||
}
|
||||
};
|
||||
source: LocalDataSource = new LocalDataSource();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue