如何将占位符设置为 table 过滤器?

How to set placeholder to a table filter?

我正在尝试在 Webix table 过滤器中添加一个占位符,如下所示:

columns:[
    { 
      id:"title",   header:["Film title", { 
        content:"richSelectFilter", // placeholder:"Select the movie..." doesn't work
      }], width:300 
    },    
    { id:"rating",  header:"Rating",    width:100 }
]

样本:http://webix.com/snippet/cac752a6

这适用于通常的 richSelect 小部件,但我找不到更改相同 table 过滤器配置的方法。可能吗?谢谢

您可以使用类似于 next 的代码来为 rich-select 过滤器设置占位符

columns:[
{ 
  id:"title",   header:["Film title", { 
    content:"richSelectFilter", inputConfig:{ placeholder: "text here" }
  }], width:300 
},

http://webix.com/snippet/58b054a2

或者,如果您想动态更改占位符

var select = $$("d1").getFilter("title");
select.define("placeholder", "Some text here");
select.refresh(); 

http://webix.com/snippet/bd31c1f6