cristianotestai Posted July 21, 2018 Share Posted July 21, 2018 Hello, In my table I have a status field, where it can be 0(open), 1(close) and 2(canceled). For each status i would like to display in UniDbGrid an icon originated according to CSS class below, using FontAwesome. How can i handle the column in UniDbgrid to receive the associated content? / * CSS Image FontAwesome * / .x-status-open:: before { content: ""; } .x-status-open { font-family: FontAwesome! important; font-size: 14px! color: # 717171! important; padding: 2px 5px; -webkit-padding-before: 3px; } .x-status-close:: before { content: ""; } .x-status-close { font-family: FontAwesome! important; font-size: 14px! color: # 717171! important; padding: 2px 5px; -webkit-padding-before: 3px; } .x-status-canceled:: before { content: ""; } .x-status-canceled { font-family: FontAwesome! important; font-size: 14px! color: # 717171! important; padding: 2px 5px; -webkit-padding-before: 3px; } Thanks! Cristiano Testai Brazil Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 21, 2018 Share Posted July 21, 2018 Hello, Is the field Read-only? Quote Link to comment Share on other sites More sharing options...
cristianotestai Posted July 22, 2018 Author Share Posted July 22, 2018 Hello, Is the field Read-only? Hi Delphi Developer! Yes. But i would like if possible that the icon could call another frame. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
cristianotestai Posted July 23, 2018 Author Share Posted July 23, 2018 Hi Delphi Developer, Any idea or workaround? Thanks!! Quote Link to comment Share on other sites More sharing options...
Marlon Nardi Posted July 24, 2018 Share Posted July 24, 2018 HI Cristiano, I made this example for you, using FontAwesome, may help you. FontAwesome.rar 1 Quote Link to comment Share on other sites More sharing options...
cristianotestai Posted July 25, 2018 Author Share Posted July 25, 2018 HI Cristiano, I made this example for you, using FontAwesome, may help you. Thanks Marlon, work fine! Best Regards! Cristiano Quote Link to comment Share on other sites More sharing options...
rpsoft Posted October 3, 2019 Share Posted October 3, 2019 On 23/7/2018 at 21:48, Marlon Nardi said: Hola Cristiano Hice este ejemplo para ti, usando FontAwesome, puede ayudarte. FontAwesome.rar Hello, could you share this example again, thank you very much! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 4, 2019 Share Posted October 4, 2019 7 hours ago, rpsoft said: Hello, could you share this example again, thank you very much! Hello, Sorry, which edition and build of UniGUI are you using? Quote Link to comment Share on other sites More sharing options...
gilmar Posted May 1, 2022 Share Posted May 1, 2022 On 23/07/2018 at 21:48, Marlon Nardi said: Olá Cristiano, Eu fiz este exemplo para você, usando FontAwesome, pode te ajudar. FontAwesome.rarIndisponível please repost this example Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 1, 2022 Share Posted May 1, 2022 45 minutes ago, gilmar said: please repost this example Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.