WagnerAlexandre Posted August 14, 2017 Share Posted August 14, 2017 Hello friends, is there any way to use the bootstrap css with unigui buttons? Thank you very much in advance. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 30, 2017 Share Posted August 30, 2017 Hi, Perhaps in part, but you can try to use this way I think: 1. CustomFiles: files/bootstrap.min.css 2. beforeInit: function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-default"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-primary"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-success"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-info"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-warning"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-danger"; } Result: Best regards, 1 Quote Link to comment Share on other sites More sharing options...
borgesma Posted September 11, 2017 Share Posted September 11, 2017 Very good explanation. I had this doubt. Thank you Quote Link to comment Share on other sites More sharing options...
cgarrotti Posted November 13, 2017 Share Posted November 13, 2017 Hi, Perhaps in part, but you can try to use this way I think: 1. CustomFiles: files/bootstrap.min.css 2. beforeInit: function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-default"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-primary"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-success"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-info"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-warning"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-danger"; } Result: bootstrapButtons.png Best regards, Where stay this beforeinit ? On uniButton component ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 13, 2017 Share Posted November 13, 2017 Hi, Where stay this beforeinit ? On uniButton component ? Which edition and build are you using ?! Best regards, Quote Link to comment Share on other sites More sharing options...
Beginner Posted January 15, 2018 Share Posted January 15, 2018 Hi, Perhaps in part, but you can try to use this way I think: 1. CustomFiles: files/bootstrap.min.css 2. beforeInit: function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-default"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-primary"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-success"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-info"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-warning"; } function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-danger"; } Result: bootstrapButtons.png Best regards, Hi thank you for you I have question after I added before init config.baseCls="btn"; config.cls="btn-danger"; Other button not poperly rendered How solve this problem? Unigui last trial Quote Link to comment Share on other sites More sharing options...
Valls Posted September 26, 2018 Share Posted September 26, 2018 Hi, there is some way to draw a glyphicon? function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-danger"; config.cls="glyphicon glyphicon-search"; } Thanks. 1 Quote Link to comment Share on other sites More sharing options...
Jake Posted November 14, 2018 Share Posted November 14, 2018 Same question as Valls. Is there someway to add a glyphicon on a button? On 9/26/2018 at 6:15 PM, Valls said: Hi, there is some way to draw a glyphicon? function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-danger"; config.cls="glyphicon glyphicon-search"; } Thanks. Quote Link to comment Share on other sites More sharing options...
thiagopedro Posted February 4, 2019 Share Posted February 4, 2019 Is it functional in version 1.50.0.1485? I tested it and it did not work. Quote Link to comment Share on other sites More sharing options...
azago Posted March 18, 2019 Share Posted March 18, 2019 add files/bootstrap.min.css in ServerModule->CustomFiles UniButton -> ClientEvents -> UniEvents function beforeInit(sender, config) { config.baseCls="btn"; config.cls="btn-danger"; } to draw a glyphicon UniButton -> IconCls insert (for example) glyphicon glyphicon-duplicate in 1.50.0.1482 work fine 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.