Skip to content

Commit b2f9976

Browse files
fix filter control template for selections (#19)
1 parent cc72ef8 commit b2f9976

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

assets/app.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $(function () {
3535
);
3636
}
3737

38-
return buttons.join("");
38+
return buttons.join("");
3939
};
4040

4141
window.defaultActionCellStyle = function () {
@@ -75,6 +75,13 @@ $(function () {
7575
params.isCallback = true;
7676
params.tableName = tableName;
7777
return params;
78+
},
79+
filterTemplate: {
80+
...$.fn.bootstrapTable.defaults.filterTemplate,
81+
select(table, field) {
82+
const filterOptions = table.columns[table.fieldsColumnsIndex[field]].filterOptions;
83+
return window.defaultAdvSearchChoiceField(field, filterOptions, undefined);
84+
},
7885
}
7986
});
8087

src/Resources/public/bootstrap-table.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)