Browse Source

Improved locales validation again

flowchartTest
jos 9 years ago
parent
commit
ecb525c7a8
3 changed files with 12 additions and 3 deletions
  1. +4
    -1
      lib/network/options.js
  2. +4
    -1
      lib/timeline/optionsGraph2d.js
  3. +4
    -1
      lib/timeline/optionsTimeline.js

+ 4
- 1
lib/network/options.js View File

@ -268,7 +268,10 @@ let allOptions = {
autoResize: {boolean}, autoResize: {boolean},
clickToUse: {boolean}, clickToUse: {boolean},
locale:{string}, locale:{string},
locales:{object},
locales:{
__any__: {any},
__type__: {object}
},
height: {string}, height: {string},
width: {string}, width: {string},
__type__: {object} __type__: {object}

+ 4
- 1
lib/timeline/optionsGraph2d.js View File

@ -127,7 +127,10 @@ let allOptions = {
height: {string, number}, height: {string, number},
hiddenDates: {object, array}, hiddenDates: {object, array},
locale:{string}, locale:{string},
locales:{object},
locales:{
__any__: {any},
__type__: {object}
},
max: {date, number, string, moment}, max: {date, number, string, moment},
maxHeight: {number, string}, maxHeight: {number, string},
min: {date, number, string, moment}, min: {date, number, string, moment},

+ 4
- 1
lib/timeline/optionsTimeline.js View File

@ -66,7 +66,10 @@ let allOptions = {
height: {string, number}, height: {string, number},
hiddenDates: {object, array}, hiddenDates: {object, array},
locale:{string}, locale:{string},
locales:{object},
locales:{
__any__: {any},
__type__: {object}
},
margin: { margin: {
axis: {number}, axis: {number},
item: { item: {

Loading…
Cancel
Save