bootstrap-4

How do I add spacing between rows of a card-deck in bootstrap

二次信任 提交于 2021-02-20 03:57:41
问题 I fixed the size of each columns so that there's always 4 deck-items per row and the card-deck automatically goes to the next row whenever there is more than 4 deck-items in the row. But the spacing between two rows are very small and it looks like as if they are overlapping. As I am new to bootstrap I cant figure out how to add spacing between them. I tried to use margin but it didnt worked. This is my code for card-deck <div class="card-deck"> @foreach ($animes as $anime) <div class="col-sm

Add button on header (th) to hide and show filter control in bootstrap table

雨燕双飞 提交于 2021-02-19 11:25:15
问题 I am using bootstrap table with filter control. I want to be able to add a button(icon) on each of my th's to hide and show the filter control. Is there a way to do that? This is an example on bootstrap table: https://live.bootstrap-table.com/example/extensions/filter-control.html As you can see the filter control takes up a lot of place on the header. I just wanted to see if it was possible to only add the filter control by adding an icon on the header that adds the filter control on click

Add button on header (th) to hide and show filter control in bootstrap table

喜夏-厌秋 提交于 2021-02-19 11:24:32
问题 I am using bootstrap table with filter control. I want to be able to add a button(icon) on each of my th's to hide and show the filter control. Is there a way to do that? This is an example on bootstrap table: https://live.bootstrap-table.com/example/extensions/filter-control.html As you can see the filter control takes up a lot of place on the header. I just wanted to see if it was possible to only add the filter control by adding an icon on the header that adds the filter control on click

Horizontally and vertically center bootstrap 4 columns in consecutive rows

流过昼夜 提交于 2021-02-19 03:48:18
问题 I'm trying to simply center justify and align two bootstrap columns inside a container. The columns are in different rows. The grid layout is <body style="height: 100vh;"> <div class="container"> <div class="row"> <div class="col-6"> <div class="card"> hello </div> </div> </div> <div class="row"> <div class="col-4"> <div class="card"> world </div> </div> </div> </div> </body> the cards are just to outline the containers. I'm aware there are MANY questions on vertical alignment, and I may have

Use “Variable width content” grid in Bootstrap 3

风流意气都作罢 提交于 2021-02-19 01:58:06
问题 I'm currently using Bootstrap 3.3.7 and because my site is huge it isn't easy to migrate to v4. Nevertheless I'd like to use the new Auto-Layout-columns (Variable width content) feature (see screenshot below). Has anybody an idea for a workaround? <div class="container-fluid"> <div class="row"> <div class="col-xs-6 col-xs-push-3 col-md-3">Fixed 250px</div> <div class="col-xs-6 col-xs-pull-3 col-md-3">Auto</div> <div class="col-xs-6 col-md-3">Auto</div> <div class="col-xs-6 col-md-3">Auto</div

Migrating bootstrap to v4 - popovers not working

≡放荡痞女 提交于 2021-02-19 01:24:54
问题 I have problem with migrating Bootstrap from version 3 to 4. The problem is with popovers and the popper.js library. Every time I hover on an element I get this error: Uncaught TypeError: Cannot read property 'indexOf' of undefined at v (computeAutoPlacement.js:24) at Object.onLoad (applyStyle.js:57) at index.js:69 at Array.forEach () at new t (index.js:67) at i.t.show (tooltip.js:286) at HTMLSpanElement. (popover.js:166) at Function.each (jquery.min.js:2) at r.fn.init.each (jquery.min.js:2)

Migrating bootstrap to v4 - popovers not working

[亡魂溺海] 提交于 2021-02-19 01:23:15
问题 I have problem with migrating Bootstrap from version 3 to 4. The problem is with popovers and the popper.js library. Every time I hover on an element I get this error: Uncaught TypeError: Cannot read property 'indexOf' of undefined at v (computeAutoPlacement.js:24) at Object.onLoad (applyStyle.js:57) at index.js:69 at Array.forEach () at new t (index.js:67) at i.t.show (tooltip.js:286) at HTMLSpanElement. (popover.js:166) at Function.each (jquery.min.js:2) at r.fn.init.each (jquery.min.js:2)

Bootstrap select element not rendered with react-router

邮差的信 提交于 2021-02-19 00:57:11
问题 I am making a basic app in reactjs. I've setup routes for 3 components. The problem is select fields don't appear when the component is rendered. I'm using bootstrap-select library for the select fields. The select fields that have className as "selectpicker" do not render, they just aren't there. They showed up when I removed "selectpicker" from the className. When using "selectpicker", they show up when the browser page is reloaded. Below is a snippet from my code: https://codesandbox.io/s

Bootstrap select element not rendered with react-router

柔情痞子 提交于 2021-02-19 00:56:17
问题 I am making a basic app in reactjs. I've setup routes for 3 components. The problem is select fields don't appear when the component is rendered. I'm using bootstrap-select library for the select fields. The select fields that have className as "selectpicker" do not render, they just aren't there. They showed up when I removed "selectpicker" from the className. When using "selectpicker", they show up when the browser page is reloaded. Below is a snippet from my code: https://codesandbox.io/s

Getting bootstrap vue pagination to play with REST api

南楼画角 提交于 2021-02-18 20:01:12
问题 Trying to get Bootstrap Vue to play with a REST api that returns data for one page and the total number of records (based on this): <template> </div> <b-pagination v-on:change="onPageChange" :total-rows="totalRows" :per-page="perPage" v-model="currentPage" /> <b-table responsive striped hover show-empty stacked="md" :items="items" :fields="fields" :current-page="currentPage" :per-page="perPage" :filter="filter" :sort-by.sync="sortBy" :sort-desc.sync="sortDesc" :sort-direction="sortDirection"