Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquerybuilder input date

var rules_widgets = {
  condition: 'OR',
  rules: [{
    id: 'date',
    operator: 'equal',
    value: '1991/11/17'
  }]
};

$('#builder-widgets').queryBuilder({
  plugins: ['bt-tooltip-errors'],

  filters: [{
    id: 'date',
    label: 'Datepicker',
    type: 'date',
    validation: {
      format: 'YYYY/MM/DD'
    },
    plugin: 'datepicker',
    plugin_config: {
      format: 'yyyy/mm/dd',
      todayBtn: 'linked',
      todayHighlight: true,
      autoclose: true
    }
  }],

  rules: rules_widgets
});

$('#btn-reset').on('click', function() {
  $('#builder-widgets').queryBuilder('reset');
});

$('#btn-set').on('click', function() {
  $('#builder-widgets').queryBuilder('setRules', rules_widgets);
});

$('#btn-get').on('click', function() {
  var result = $('#builder-widgets').queryBuilder('getRules');

  if (!$.isEmptyObject(result)) {
    alert(JSON.stringify(result, null, 2));
  }
}); 
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to create alias in populate moongoose + nodejs 
Javascript :: javascript file access to resources asp.net mvc 
Javascript :: concept of node js with react js 
Javascript :: -d {followingjson} curl 
Javascript :: js extract all tags not have attr 
Javascript :: javascript match image attribute value 
Javascript :: ali express no ads apk latest 
Javascript :: js resize div with mouse 
Javascript :: firebase angular send notification to by tocken 
Javascript :: react cleanup meas 
Javascript :: hark javascript 
Javascript :: jquery visibility effects 
Javascript :: get switchery to load after an ajax call 
Javascript :: passing a variable to the width style div angular 
Javascript :: activar funcion js con id 
Javascript :: implement subscript operator js 
Javascript :: run nodes cleos 
Javascript :: ismodified function 
Javascript :: redux filter pane 
Javascript :: jlkj 
Javascript :: JSDOM - serialize() // returns dom as string 
Javascript :: javascript loop arrays 
Javascript :: javascript mvc patetern 
Javascript :: setstate before function react 
Javascript :: create react app runtime env 
Javascript :: 4.8. Input with readline-sync¶ 
Javascript :: replicate component did update hooks 
Javascript :: 8.2. Working With Arrays // Undefined 
Javascript :: https://www.npmjs.com/package/number-in-letters 
Javascript :: F:JavascriptOOP 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =