bootstrap-4

React - Use Bootstrap globally with css modules

有些话、适合烂在心里 提交于 2020-01-17 01:53:12
问题 Pretty new to react and all that stuff, so I need some help here. I recently added the https://github.com/gajus/babel-plugin-react-css-modules plugin to my project. After some troubles I got it to work, so I can now use my local css files with my components. So far so good. Not I would like to add bootstrap for the whole application. It worked before I added the css-modules plugin... Here's are the relevant parts of my code (I guess... if I miss something let me know): index.js (entrypoint of

Dynamically generate an accordion based on array data

半城伤御伤魂 提交于 2020-01-16 19:09:18
问题 I am reading mysql fine to pull a set of data given a particular ID, this returns an array to my script. Thats the easy bit. Example of which is here an is stored in an array called $history Array ( [serviceID] => 1 [VesselTag] => 1000001 [component] => Engine 1 [item] => Caterpillar [serial] => 123456 [comment] => Something in here like this [parts] => Oil [lat] => 50.38313740 [longitude] => -4.03461360 [engineer] => 27 [date] => 2019-05-30 19:25:56 ) Array ( [serviceID] => 2 [VesselTag] =>

list-group does not appear as child list in Angular recursive list

老子叫甜甜 提交于 2020-01-16 17:04:50
问题 I have a list in Angular 2 and I am rendering it recursively like in https://steemit.com/utopian-io/@jaysermendez/angular-tricks-recursively-rendering-a-tree-structure. I am trying the same thing in the above tutorial and instead of displaying in an unordered list, I want to produce a collapsible list like in https://jsfiddle.net/ann7tctp/. Displaying in unordered list works fine. However, when trying to display as collapsible list, I couldn't display the items as an hierarchy. Code to

list-group does not appear as child list in Angular recursive list

最后都变了- 提交于 2020-01-16 17:03:47
问题 I have a list in Angular 2 and I am rendering it recursively like in https://steemit.com/utopian-io/@jaysermendez/angular-tricks-recursively-rendering-a-tree-structure. I am trying the same thing in the above tutorial and instead of displaying in an unordered list, I want to produce a collapsible list like in https://jsfiddle.net/ann7tctp/. Displaying in unordered list works fine. However, when trying to display as collapsible list, I couldn't display the items as an hierarchy. Code to

Having trouble getting a new layout to work as desired in Bootstrap 4

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-16 15:26:45
问题 I have a hyperlink in the figure caption on my project and the link only appears to work when in mobile view / or small screen where the columns collapse. For some reason, this issue isn't replicated on JFiddle but it is when I test on a variety of browsers and devices. I discovered that with my old code, the paragraph's area was overlapping the hyperlink's hoverable clicking space, and making it impossible to click until the image would stack above on smaller screen/mobile in the old code. *

Button_tag not working inside table in Rails

﹥>﹥吖頭↗ 提交于 2020-01-16 12:00:14
问题 I have the following button_tag inside a form in a table : <div class="table-responsive tableBG"> ** If I move the button here, it works perfectly ** <table class="table table-striped table-sm table-mini"> <thead class="thead"> <tr> <th>...</th> </tr> </thead> <tbody> <tr>...</tr> ... <%= form_for article, :html => {:class => 'toggle'} do |f| %> <%= f.hidden_field :disable, value: true %> <%= button_tag type: 'submit', class: "btn-mini" do %> <i class="fa fa-eye-slash" aria-hidden="true"></i>

Button_tag not working inside table in Rails

自古美人都是妖i 提交于 2020-01-16 11:58:32
问题 I have the following button_tag inside a form in a table : <div class="table-responsive tableBG"> ** If I move the button here, it works perfectly ** <table class="table table-striped table-sm table-mini"> <thead class="thead"> <tr> <th>...</th> </tr> </thead> <tbody> <tr>...</tr> ... <%= form_for article, :html => {:class => 'toggle'} do |f| %> <%= f.hidden_field :disable, value: true %> <%= button_tag type: 'submit', class: "btn-mini" do %> <i class="fa fa-eye-slash" aria-hidden="true"></i>

if bootstrap4 modals located low on the page, when tap on input field inside the modal, it scrolls to the bottom (chrome android)

女生的网名这么多〃 提交于 2020-01-16 08:33:09
问题 Please have a look at this issue. I have full one-page simple html code to reproduce it. There are two modals - one on top, and one lower on the page. Input fields inside the modals. If you tap on input field, it scrolls to the very bottom so that I cannot see the input field. This issue occurs only with the bottom modal, not the top one. Using CHROME on ANDROID Here's the code: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,

Bootstrap will require a Sass compiler and Autoprefixer for a setup that matches our official compiled versions

最后都变了- 提交于 2020-01-16 04:12:12
问题 I would like to use bootstrap 4 for a brand-new project, but I'm confused by it. Q: Can I just download the source and then point to: <link rel="stylesheet" href="bootstrap-4.0.0-alpha.2/dist/css/bootstrap.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <script src="bootstrap-4.0.0-alpha.2/dist/js/bootstrap.js"></script> And that's all I need to worry about? Do I need to worry about Reboot, Grid Only or Flexbox? I just want to use bootstrap. I

Using JQuery's datepicker with bootstrap

若如初见. 提交于 2020-01-16 01:17:14
问题 Before I added bootstrap 4 to my jQuery project, the datepicker looked like this: After I added bootstrap 4, then the datepicker looks like this: I assume that it is only the formatting/size that has been changed. How do I stop the formatting being over-ridden and to get it to look like the original? I have tried the following. Calling the datepicker using jquery instead of $ Calling $.fn.datepicker.noConflict(); (I do not seem to be able to apply noConflict to the datepicker functionality,