简体   繁体   English

替换文本类型的占位符

[英]Replace Placeholder on text type

I'm wondering if it's possible to replace the placeholder text of an input..我想知道是否可以替换输入的占位符文本..

yadcf.init(myTable, [
  {column_number : 0, filter_type: "text", case_insensitive: true, filter_container_id: "pokedex-number-filter", filter_reset_button_text: false, style_class: "form-control"},
  {column_number : 1, filter_type: "text",  case_insensitive: true, filter_container_id: "pokemon-name-filter", filter_reset_button_text: false, style_class: "form-control"},
  {column_number : 2, filter_type: "text",  case_insensitive: true, filter_container_id: "pokemon-gen-filter", filter_reset_button_text: false, style_class: "form-control"},

]); ]);

You can user the following您可以使用以下内容

* setDefaults
                Description:        Set global defaults for all yadcf instances.
                Arguments:          Object consisting of anything defined under "Global Parameters"
                Usage example:      yadcf.setDefaults({'language': {'select': 'تحديد قيمة'}});

or you can set per single table, per column using the filter_default_label option或者您可以使用filter_default_label选项设置每个表、每列

read more inside the yadcf js file 在 yadcf js 文件中阅读更多内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM