查询构建器使用引导日期选择器,我想在查询构建器 JQuery 插件中使用 Shamsi 日期选择器(jalali-moment.js),但我不知道该怎么做,我想用引导日期选择器替换 jalali-moment.js,可以有人帮我吗??这是我的代码:
var rules_basic = {
condition: 'AND',
rules: [
{
id: 'date',
operator: 'equal',
value: '1991/11/17'
},
{
condition: 'OR',
rules: [{
id: 'category',
operator: 'equal',
value: 2
}, {
id: 'category',
operator: 'equal',
value: 1
}]
}]
};
$('#builder').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
}
} ,
{
id: 'category',
label: 'Category',
type: 'integer',
input: 'select',
values: {
1: 'Category 1',
2: 'Category 2'
},
operators: ['equal', 'not_equal', 'in', 'not_in', 'is_null', 'is_not_null']
}],
rules: rules_basic
});