wenzhixin / bootstrap-table-examples

Bootstrap table examples
https://examples.bootstrap-table.com/
MIT License
2.24k stars 1.62k forks source link

Change data depending of a condition #361

Closed alexisfch closed 5 years ago

alexisfch commented 5 years ago

how can I change the data of all depending of a condition For example if data is "hello" change the data to "bye" in the entire column where data is "hello"

wenzhixin commented 5 years ago

I think formatter column option can solve your problem: https://bootstrap-table.com/docs/api/column-options/#formatter https://examples.bootstrap-table.com/index.html#column-options/format.html