range.jst 314 B

123456789
  1. {{
  2. var $data = 'data' + (it.dataLevel || '')
  3. , $min = it.schema['x-range'][0]
  4. , $max = it.schema['x-range'][1]
  5. , $gt = it.schema.exclusiveRange ? '>' : '>='
  6. , $lt = it.schema.exclusiveRange ? '<' : '<=';
  7. }}
  8. var valid{{=it.level}} = {{=$data}} {{=$gt}} {{=$min}} && {{=$data}} {{=$lt}} {{=$max}};