OPNsense Forum

English Forums => Development and Code Review => Topic started by: lattera on July 31, 2020, 08:56:42 pm

Title: UIBootgrid and newlines
Post by: 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?
Title: Re: UIBootgrid and newlines
Post by: fabian on August 01, 2020, 09:19:58 am
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.
Title: Re: UIBootgrid and newlines
Post by: lattera on August 03, 2020, 11:48:37 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!