Jump to content

How to add button to toolbar's right


Freeman35

Recommended Posts

25 minutes ago, Freeman35 said:

I have a toolbar and has some buttons. I wanna add help button on this toolbar, but to toolbar's right. How to do this?

Hi,

One possible solution:

Your UniToolButton (Help button) -> ClientEvents -> ExtEvents -> function added:

function added(sender, container, pos, eOpts)
{
    container.insert(pos, {xtype: 'tbfill'});
}

 

Link to comment
Share on other sites

Always perfect :)

My plan is, this button's caption be just "?" so I have to set button with. 'cos after added your solution, button not be end of right

Thank you so much for helps.

I'll fix padding

.help-btn__ {
  background-color: red;
  width: 30px!important; /* */
  border-radius: 50%;
}

If I remove with from css works espected.

Ekran Resmi 2019-05-10 16.26.29.png

Ekran Resmi 2019-05-10 16.30.37.png

Link to comment
Share on other sites

  • 7 months later...
On 5/10/2019 at 3:18 PM, Sherzod said:

Hi,

One possible solution:

Your UniToolButton (Help button) -> ClientEvents -> ExtEvents -> function added:


function added(sender, container, pos, eOpts)
{
    container.insert(pos, {xtype: 'tbfill'});
}

 

Hi friend.

This works with one toolbutton. But, what about id I need 2 buttons right aligned?

I've tested, and the result is not ok.

Any way to do it?

Thanks.

Link to comment
Share on other sites

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