twitter-bootstrap

Open a Modal Using an Option from a Dropdown - Angular 2 + ngx

不羁岁月 提交于 2021-02-10 11:57:09
问题 Using ngx-bootstrap (4) with Angular 2/CLI. Trying to use a dropdown list to select which modal to open. The modal currently works fine if I just have a button for each modal (not a dropdown), but the requirements call for a dropdown. I tried something like <select class="detailsOption" (change)="openModal($event.target.value)"> <option value="">Select Option</option> <option value={{modal1}} >Option 1</option> <option value={{modal2}}>Option 2</option> </select> <ng-template #modal1> </ng

twitter bootstrap 3 and bootswatch flatly template - modal not working anylonger

有些话、适合烂在心里 提交于 2021-02-10 11:51:37
问题 After I had install the flatly template from bootswatch (https://bootswatch.com/flatly/) the normal modal window of twbs is not working anylonger. <a data-toggle="modal" href="#" data-target="#myModal">CLICK!</a> . . <!-- Modal --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label

twitter bootstrap 3 and bootswatch flatly template - modal not working anylonger

余生长醉 提交于 2021-02-10 11:51:05
问题 After I had install the flatly template from bootswatch (https://bootswatch.com/flatly/) the normal modal window of twbs is not working anylonger. <a data-toggle="modal" href="#" data-target="#myModal">CLICK!</a> . . <!-- Modal --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label

Bootstrap - collapse card opens then immediately closes again

时光总嘲笑我的痴心妄想 提交于 2021-02-10 09:33:38
问题 I've read previous threads that cover this issue for navbars and menus but it does not seem to apply. I have a very simple example: two cards, one opened by default the other collapsed. When I try to expand the second card by pressing Card 2 Button, it opens but then immediately closes again. I am not sure what I'm doing wrong. Thanks in advance for any help. Example here: <div id="accordion"> <div class="card"> <div class="card-header" id="header1"> <h5 class="mb-0"> <button class="btn btn

Align textbox to right of radiobuttonlist listitem

家住魔仙堡 提交于 2021-02-10 06:43:31
问题 I'm trying to do a slight upgrade of a .NET WebForms page to Bootstrap 3. I need to maintain a feature that worked fine without Bootstrap. I need a small textbox to the right of a radio button label. Like, when selecting "Other" you need to free form text what other means. In the sample above, I just need the textbox to move up and not be as wide as the entire form. Here is my current code: <div class="form-group"> <asp:Label ID="Ethnicity_Label" runat="server" Text="Ethnicity" CssClass="col

Multi select dropdown showing additional dropdown

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-10 06:29:06
问题 I am creating a multi-select dropdown using bootstrap this is the html : <form id="multiselectForm" method="post" class="form-horizontal"> <div class="form-group"> <label class="col-xs-3 control-label">Browser</label> <div class="col-xs-5"> <select class="form-control" name="browsers" multiple="multiple"> <option value="chrome">Google Chrome</option> <option value="firefox">Firefox</option> <option value="ie">IE</option> <option value="safari">Safari</option> <option value="opera">Opera<

How to make Bootstrap dropdown respect horizontal viewport limits on mobile?

白昼怎懂夜的黑 提交于 2021-02-10 06:18:07
问题 Bootstrap class dropdown-menu can autodetect the viewport of the screen and adapt accordingly So if there is no room for the dropdown to open to the bottom it opens up, as shown by the example bellow However it doesn't happen for the horizontal limits of the viewport, and I end up getting this horizontal scroll, here's an example of this happening: <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs

How can I click on a table cell and display a modal with notes

断了今生、忘了曾经 提交于 2021-02-10 05:56:25
问题 I am fairly to programmming, and have been blocked on an issue for a few days now. I have a table with 2 columns, Record# and notes for each record. The "notes" are usually very long so I was planning on having a link on each cell on the "notes" column with a link to a modal where the notes where displayed. Problem I am facing is that all the links will show the notes for the first item of the table... Here is my code (the td "Notes" is just there for verification purposes): <table> <tbody>

Laravel Mix Bootstrap Glyphicons not loading

安稳与你 提交于 2021-02-10 05:18:46
问题 I created a new laravel application and added the auth template. I tried to add this button: <button type="button" class="btn btn-default btn-lg"> <span class="glyphicon glyphicon-stop" aria-hidden="true"></span> </button> But the glyphicons are not loading I get this error in my Chrome console: GET http://localhost/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.woff2?448c34a56d699c29117adc64c43affeb GET http://localhost/fonts/vendor/bootstrap-sass/bootstrap/glyphicons

Laravel Mix Bootstrap Glyphicons not loading

隐身守侯 提交于 2021-02-10 05:18:44
问题 I created a new laravel application and added the auth template. I tried to add this button: <button type="button" class="btn btn-default btn-lg"> <span class="glyphicon glyphicon-stop" aria-hidden="true"></span> </button> But the glyphicons are not loading I get this error in my Chrome console: GET http://localhost/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.woff2?448c34a56d699c29117adc64c43affeb GET http://localhost/fonts/vendor/bootstrap-sass/bootstrap/glyphicons