Jump to content
uniGUI Discussion Forums

Recommended Posts

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:

 

post-906-0-63432600-1504071993_thumb.png

 

Best regards,

  • Upvote 1

Share this post


Link to post
Share on other sites

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:

 

attachicon.gifbootstrapButtons.png

 

Best regards,

Where stay this beforeinit ? On uniButton component ? 

Share this post


Link to post
Share on other sites

Hi,

 

Where stay this beforeinit ? On uniButton component ? 

 

Which edition and build are you using ?!

 

Best regards,

Share this post


Link to post
Share on other sites

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:

 

attachicon.gifbootstrapButtons.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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×