Skip to content

Commit

Permalink
Update schema and data for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Bijaoui committed Sep 22, 2016
1 parent 2ce1938 commit 4c76f21
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
2 changes: 2 additions & 0 deletions dev/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ module.exports = {
if (user.type == "business")
user.company = fakerator.entity.company();

user.income = [ fakerator.random.number(50000), fakerator.random.number(50000, 100000)];

res.push(user);
console.log(user);
}
Expand Down
31 changes: 14 additions & 17 deletions dev/schema.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import moment from "moment";
import Fakerator from "fakerator";
import {} from "lodash";

import { validators } from "../src";

let fakerator = new Fakerator();

module.exports = {
fields: [

Expand Down Expand Up @@ -437,20 +434,20 @@ module.exports = {
},
validator: validators.integer
},
// {
// type: "rangeSlider",
// label: "Income",
// model: "income",
// multi: true,
// min: 0,
// max: 100000,
// rangeSliderOptions: {
// type: "double",
// prefix: "$",
// step: 1000,
// force_edges: true
// }
// },
{
type: "rangeSlider",
label: "Income",
model: "income",
multi: true,
min: 0,
max: 100000,
rangeSliderOptions: {
type: "double",
prefix: "$",
step: 1000,
force_edges: true
}
},
{
type: "dateTimePicker",
label: "DOB (dateTimePicker field)",
Expand Down

0 comments on commit 4c76f21

Please sign in to comment.