简体   繁体   中英

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

read more inside the yadcf js file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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