feat(smart-table): install ng2-smart-table

This commit is contained in:
nixa 2016-08-10 17:23:18 +03:00
parent c79ac94a66
commit 120ffe7d13
7 changed files with 727 additions and 0 deletions

View file

@ -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();
}