Is there a way to render the title of SearchBuilder?
Is there a way to render the title of SearchBuilder?
Matanmkl
Posts: 4Questions: 2Answers: 0
Hi,
I was wondering is there any way to render SearchBuilder title as HTML?
I'd like to have something like that:
language:{
searchBuilder:{
title:{
0:'<p class="class="font-weight-bold"">Conditions-Based Filtering:</p>',
_:'<p><span class="font-weight-bold">Conditions-Based Filtering</span> - currently applying %d conditions:</p>'
}
},
},
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Yep, that seems reasonable, we'll add that functionality (DD-1985 for my reference), and we'll report back here when there's an update.
Colin
Hi @Matanmkl ,
That should be the issue fixed now as you can see at this example.
This will be available in the next SearchBuilder release which we hope will be in the next few weeks. Until then you can access the fix from the nightly builds.
Thanks,
Sandy
Not specific to SearchBuilder - I've never understood what this syntax means:
Any advice appreciated.
Hi @tangerine ,
It allows strings to be different dependant on a numerical value. If we demonstrate this using selected rows, which is set using
language.select.rows
, it states in the docs.So to give an example, if you had no rows selected you might want to display
If there was 1 row you might want to display
And for more than 1, say 5 you might want to display
The differences between these are subtle, but important for many languages.
Hope this helps,
Sandy
Thank you, Sandy. I hadn't seen that page of the docs.
Thanks for the quick response.
No worries
@colin Is there any release with this feature on its way?
Hi @Matanmkl ,
This was released in version 1.1.0 of SearchBuilder back in June. Take a look at this example.
Thanks,
Sandy
Yep, very soon. We had aimed for the end of last week, but we're slipping slightly. It'll definitely be by the end of this week, possibly before mid-week.
Colin