Bootstrap-table: Adding a button inside bootstrap table toolbar

Created on 8 Nov 2017  路  4Comments  路  Source: wenzhixin/bootstrap-table

Hi - I have a bootstrap table in my portal and there are few buttons that open dialog boxes and lead to another page etc, from a look & feel perspectives, my business folks are suggesting to move those buttons within bootstrap toolbar.

How can I do that ? If you see the below screenshot, there is lot of space below my 'Add Resource' button, would like to move 'Add Resource' button inside the tool bar left side i.e. same level as the search box but towards the left, that way it will show up exactly on top of the table.

image

Thanks,
Deepesh

fixed

Most helpful comment

Example for use a toolbar in your bootstrap table.

Create your toolbar in your html:

<div id="toolbar">
  your buttons here
</div>

In your html table use the data-toolbar param:

<table data-toolbar="#toolbar"></table>

All 4 comments

Example for use a toolbar in your bootstrap table.

Create your toolbar in your html:

<div id="toolbar">
  your buttons here
</div>

In your html table use the data-toolbar param:

<table data-toolbar="#toolbar"></table>

Thanks for the note, superb one...

Button got disappear When I am keeping button inside Div.

your buttons here

Please help me!

you are the boss! thank you!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gadget00 picture gadget00  路  16Comments

sxahmed picture sxahmed  路  19Comments

Valery1991 picture Valery1991  路  31Comments

marcelod picture marcelod  路  16Comments

iamthestreets picture iamthestreets  路  26Comments