Jump to content

WagnerAlexandre

Recommended Posts

  • 3 weeks later...

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

  • 2 weeks later...
  • 2 months later...

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 ? 

Link to comment
Share on other sites

  • 2 months later...

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

Link to comment
Share on other sites

  • 8 months later...
  • 1 month later...

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.

 

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
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

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...