Hi
I am using the following syntax to use a the javascript function for adding a dropdown to a filter within a column of a grid:
columns: [
{
title: "Typ",
field: "FileExtension",
width: 50,
filterable: {
ui: dropDownFilter
}
},
{
title: "Titel",
field: "Title",
width: 360,
filterable: {
ui: dropDownFilter
}
},
Within the javascript function "typeFilter" I would like to know the column or better the field of the column
to build a javasript function that can work dynamically for several columns.
So is there a way to get the field ("FileExtension") within the javascript function or a way to pass it down to it?
function dropDownFilter(element) {
element.field ?????
}
Thanks for your help!
Best regards,
Pascal Hohensträter