Jump to content

Recommended Posts

  • 3 weeks later...
Posted

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
  • 2 weeks later...
  • 2 months later...
Posted

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 ? 

  • 2 months later...
Posted

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

  • 8 months later...
Posted
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.

  • Upvote 1
  • 1 month later...
Posted

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.

 

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

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...