tables component structure

This commit is contained in:
nixa 2016-05-13 18:18:11 +03:00
parent 9a90d9507c
commit 1d6c0554a3
8 changed files with 98 additions and 0 deletions

View file

@ -95,6 +95,20 @@ export const menuItems = [
},
]
},
{
title: 'Tables',
component: 'Tables',
icon: 'ion-grid',
selected: false,
expanded: false,
order: 600,
subMenu: [
{
title: 'Basic Tables',
component: 'BasicTables',
}
]
},
{
title: 'Menu Level 1',
icon: 'ion-ios-more',

View file

@ -8,6 +8,7 @@ import {Ui} from './ui';
import {Maps} from './maps';
import {Charts} from './charts';
import {Forms} from './forms';
import {Tables} from './tables';
@Component({
selector: 'pages',
@ -65,6 +66,11 @@ import {Forms} from './forms';
component: Forms,
path: '/forms/...',
},
{
name: 'Tables',
component: Tables,
path: '/tables/...',
}
])
export class Pages {

View file

@ -0,0 +1,16 @@
import {Component, ViewEncapsulation} from '@angular/core';
import {BaCard} from '../../../../theme/components';
@Component({
selector: 'basic-tables',
encapsulation: ViewEncapsulation.None,
directives: [BaCard],
styles: [require('./basicTables.scss')],
template: require('./basicTables.html'),
})
export class BasicTables {
constructor() {
}
}

View file

@ -0,0 +1,5 @@
<div class="widgets">
hello basic
</div>

View file

@ -0,0 +1,30 @@
@import '../../../../theme/sass/conf/conf';
.show-grid div[class^=col-]{
padding: 10px;
box-sizing: border-box;
div {
color: $default-text;
text-align: center;
font-size: 18px;
background-color: $border-light;
padding: 12px 5px;
}
}
.grid-h{
margin-top: 10px;
margin-bottom: 0;
&:first-child{
margin-top: 0;
}
}
body.badmin-transparent {
.show-grid div[class^=col-]{
div {
color: $default;
background-color: rgba(255, 255, 255, 0.3);
}
}
}

View file

@ -0,0 +1 @@
export * from './basicTables.component';

View file

@ -0,0 +1 @@
export * from './tables.component';

View file

@ -0,0 +1,25 @@
import {Component} from '@angular/core';
import {RouteConfig} from '@angular/router-deprecated';
import {BasicTables} from './components/basicTables';
@Component({
selector: 'forms',
pipes: [],
providers: [],
styles: [],
template: `<router-outlet></router-outlet>`
})
@RouteConfig([
{
name: 'BasicTables',
component: BasicTables,
path: '/basic',
useAsDefault: true
}
])
export class Tables {
constructor() {
}
}