Started xosForm component
diff --git a/views/ngXosViews/sampleView/src/js/main.js b/views/ngXosViews/sampleView/src/js/main.js
index b00aa0b..6f4d045 100644
--- a/views/ngXosViews/sampleView/src/js/main.js
+++ b/views/ngXosViews/sampleView/src/js/main.js
@@ -3,7 +3,6 @@
angular.module('xos.sampleView', [
'ngResource',
'ngCookies',
- 'ngLodash',
'ui.router',
'xos.helpers'
])
@@ -54,9 +53,9 @@
],
filter: 'field',
order: true,
- // pagination: {
- // pageSize: 6
- // }
+ pagination: {
+ pageSize: 3
+ }
};
this.alertConfig = {
@@ -64,11 +63,29 @@
closeBtn: true
}
+ this.formConfig = {
+ exclude: ['password'],
+ fields: {
+ last_login: {
+ type: 'date'
+ }
+ },
+ actions: [
+ {
+ label: 'Save',
+ icon: 'ok', // refers to bootstraps glyphicon
+ cb: (user) => { // receive the model
+ console.log(user);
+ },
+ class: 'success'
+ }
+ ]
+ }
// retrieving user list
Users.query().$promise
.then((users) => {
- this.users = users;
+ this.users = users.concat(users).concat(users);
})
.catch((e) => {
throw new Error(e);