33
Views
5
Comments
Solved
[OutSystems UI] DropdownSearch - Customize text of alwaysShowSelectedOptionsCount
outsystems-ui
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

Hello,

There is an option to customize the text of parameter: alwaysShowSelectedOptionsCount? Or just with JS it's possible?


Thanks, Paulo Torres

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hi @Paulo Torres 

All the available properties can be found here in the VirtualSelect documentation so if there was a parameter for that it would be there and should be used as @JosĂ© Rio mentioned.
You can also try to use a javascript node to override that text (something like document.querySelector('.vscomp-selected-value-count').nextSibling.textContent = ' your text').

Update:

  • @Paulo Torres I double-checked this since I found it strange not to have it and I believe the properties you need to use are optionsSelectedText and optionSelectedText.
    Hope it helps!


Cheers,
GM

2022-04-08 16-49-21
José Rio

Hi @Paulo Torres,

You can use the client action SetVirtualSelectConfigs for that, just add it at the DropdownSearch Initialized event.


Cheers,
JR

2023-08-28 07-00-10
Paulo Torres
Champion

Hi José,

This parameter is the one I spoke on my first comment, I'm using this, but I want to customize the text (Change the default text).

Thanks, Paulo Torres

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hi @Paulo Torres 

All the available properties can be found here in the VirtualSelect documentation so if there was a parameter for that it would be there and should be used as @JosĂ© Rio mentioned.
You can also try to use a javascript node to override that text (something like document.querySelector('.vscomp-selected-value-count').nextSibling.textContent = ' your text').

Update:

  • @Paulo Torres I double-checked this since I found it strange not to have it and I believe the properties you need to use are optionsSelectedText and optionSelectedText.
    Hope it helps!


Cheers,
GM

2023-08-28 07-00-10
Paulo Torres
Champion

Thanks for confirming that doesn't exists option for that, Gonçalo!

2022-11-12 11-28-30
Gonçalo Martins
Staff

@Paulo Torres please check the update I made on my answer since I believe you actually have a solution :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.