UIBootgrid and newlines

Started by lattera, July 31, 2020, 08:56:42 PM

Previous topic - Next topic
I'm populating a UIBootgrid with some data where a column has embedded newline characters. I'd like to effectively turn them into "<br />" tags. What's the best way to do that?

Quote from: lattera on July 31, 2020, 08:56:42 PM
I'm populating a UIBootgrid with some data where a column has embedded newline characters. I'd like to effectively turn them into "<br />" tags. What's the best way to do that?
I would suggest a custom formatter which can be passed in at the constructor.

Quote from: fabian on August 01, 2020, 09:19:58 AM
Quote from: lattera on July 31, 2020, 08:56:42 PM
I'm populating a UIBootgrid with some data where a column has embedded newline characters. I'd like to effectively turn them into "<br />" tags. What's the best way to do that?
I would suggest a custom formatter which can be passed in at the constructor.

Yup! Thanks for the hint!