Started smart table component
diff --git a/views/ngXosViews/sampleView/env/default.js b/views/ngXosViews/sampleView/env/default.js
index dacf8e8..053be99 100644
--- a/views/ngXosViews/sampleView/env/default.js
+++ b/views/ngXosViews/sampleView/env/default.js
@@ -8,6 +8,6 @@
module.exports = {
host: 'http://xos.dev:9999/',
- xoscsrftoken: 'q7gXR35WCSa2R9njrZJiubGCUxGR40tX',
- xossessionid: 'ghzz0lxwt8f7z5io9gj8ni9yrrrkgz17'
+ xoscsrftoken: 'OwZOjlUUKSXGNbGkJsBPT9sPyEABXl8G',
+ xossessionid: 'uk0a1z9gbm5leb1tgrdyfsb48uc9sakv'
};
diff --git a/views/ngXosViews/sampleView/src/index.html b/views/ngXosViews/sampleView/src/index.html
index 2693838..593e982 100644
--- a/views/ngXosViews/sampleView/src/index.html
+++ b/views/ngXosViews/sampleView/src/index.html
@@ -3,8 +3,8 @@
<link rel="stylesheet" href="vendor/bootstrap-css/css/bootstrap.min.css" />
<!-- endbower --><!-- endcss -->
<!-- inject:css -->
-<link rel="stylesheet" href="/../../../xos/core/static/xosNgLib.css">
<link rel="stylesheet" href="/css/main.css">
+<link rel="stylesheet" href="/../../../xos/core/static/xosNgLib.css">
<!-- endinject -->
<div ng-cloak ng-app="xos.sampleView" id="xosSampleView" class="container-fluid">
diff --git a/views/ngXosViews/sampleView/src/js/main.js b/views/ngXosViews/sampleView/src/js/main.js
index d3aa494..5f7be4d 100644
--- a/views/ngXosViews/sampleView/src/js/main.js
+++ b/views/ngXosViews/sampleView/src/js/main.js
@@ -59,6 +59,10 @@
}
};
+ this.smartTableConfig = {
+ resource: 'Users'
+ }
+
this.alertConfig = {
type: 'danger',
closeBtn: true
diff --git a/views/ngXosViews/sampleView/src/templates/users-list.tpl.html b/views/ngXosViews/sampleView/src/templates/users-list.tpl.html
index c1f7b20..a0902cd 100644
--- a/views/ngXosViews/sampleView/src/templates/users-list.tpl.html
+++ b/views/ngXosViews/sampleView/src/templates/users-list.tpl.html
@@ -7,17 +7,18 @@
<div class="row">
<div class="col-xs-12">
- <xos-form ng-model="vm.users[0]" config="vm.formConfig"></xos-form>
+ <!-- <xos-form ng-model="vm.users[0]" config="vm.formConfig"></xos-form>
<xos-alert config="vm.alertConfig">Random alert</xos-alert>
<a class="btn" ng-click="vm.errors.email = !vm.errors.email" ng-class="{'btn-default': !vm.errors.email, 'btn-success': vm.errors.email}">
Email
- </a>
- <xos-validation errors="vm.errors"></xos-validation>
+ </a> -->
+ <!-- <xos-validation errors="vm.errors"></xos-validation> -->
</div>
</div>
<div class="row">
<div class="col-xs-12">
- <xos-table data="vm.users" config="vm.tableConfig"></xos-table>
+ <!-- <xos-table config="vm.tableConfig"></xos-table> -->
+ <xos-smart-table config="vm.smartTableConfig"></xos-smart-table>
</div>
</div>
\ No newline at end of file