WagnerAlexandre Posted August 14, 2017 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
Sherzod Posted August 30, 2017 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
borgesma Posted September 11, 2017 Posted September 11, 2017 Very good explanation. I had this doubt. Thank you Quote
cgarrotti Posted November 13, 2017 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
Sherzod Posted November 13, 2017 Posted November 13, 2017 Hi, Where stay this beforeinit ? On uniButton component ? Which edition and build are you using ?! Best regards, Quote
Beginner Posted January 15, 2018 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
Valls Posted September 26, 2018 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
Jake Posted November 14, 2018 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
thiagopedro Posted February 4, 2019 Posted February 4, 2019 Is it functional in version 1.50.0.1485? I tested it and it did not work. Quote
azago Posted March 18, 2019 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
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.