Skip to content

Commit

Permalink
Merge pull request #1833 from breakone/feature/filter-clear-button
Browse files Browse the repository at this point in the history
[IndexBundle] add clear button for filter preSelect combos
  • Loading branch information
dpfaffenbauer authored Jan 11, 2022
2 parents 48f1273 + ef0ae91 commit e5d313b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ coreshop.filter.conditions.multiselect = Class.create(coreshop.filter.conditions
editable: false,
forceSelection: true,
queryMode: 'local',
value: this.data.configuration.preSelects
value: this.data.configuration.preSelects,
plugins: ['clearbutton'],
}
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ coreshop.filter.conditions.range = Class.create(coreshop.filter.conditions.abstr
editable: false,
forceSelection: true,
queryMode: 'local',
value: this.data.configuration.preSelectMin
value: this.data.configuration.preSelectMin,
plugins: ['clearbutton'],
},
{
xtype: 'combo',
Expand All @@ -55,7 +56,8 @@ coreshop.filter.conditions.range = Class.create(coreshop.filter.conditions.abstr
editable: false,
forceSelection: true,
queryMode: 'local',
value: this.data.configuration.preSelectMax
value: this.data.configuration.preSelectMax,
plugins: ['clearbutton'],
}
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ coreshop.filter.conditions.relational_multiselect = Class.create(coreshop.filter
editable: false,
forceSelection: true,
queryMode: 'local',
value: this.data.configuration.preSelects
value: this.data.configuration.preSelects,
plugins: ['clearbutton'],
}
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ coreshop.filter.conditions.relational_select = Class.create(coreshop.filter.cond
editable: false,
forceSelection: true,
queryMode: 'local',
value: this.data.configuration.preSelects
value: this.data.configuration.preSelects,
plugins: ['clearbutton'],
}
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ coreshop.filter.conditions.select = Class.create(coreshop.filter.conditions.abst
editable: false,
forceSelection: true,
queryMode: 'local',
value: this.data.configuration.preSelect
value: this.data.configuration.preSelect,
plugins: ['clearbutton'],
}
];
}
Expand Down

0 comments on commit e5d313b

Please sign in to comment.