Hi,
I'm creating a button dropdown for one of the columns in my grid for updating:
{ columnKey: "ID", editorOptions: { button: "dropdown", listItems: myData} }
Can someone tell me what's the best way to change font size for the list items in this dropdown?
Thanks!
Hi,The best way is to use CSS like this one:
<style type="text/css">.ui-igcombo-list { font-size: 0.5em!important;}</style>
Let's say that I want to decide my font-size based on a network (API) call.
After this network call completes, I know what font size to set, and now I will initialize my Combo.
Please tell me how to set this font-size dynamically?
Please show me the right option to be set from the options list here: https://www.igniteui.com/help/api/2017.2/ui.igcombo
Regards,
Jeetendra
Hello Jeetendra,
Currently we do not provide option that can set the fon-size based on your requirement.
As Martin said in the beginning of the thread, you can use CSS to do so, as for dynamic changing of the font (based on API call) my suggestion is to use itemTemplate and use a class wrapper that will define your styles. Later on you can do anything with it thanks to the power of JS and jQuery.
www.igniteui.com/.../templates