bootstrap-4

How to close all the menus inside an Accordion in Angular 4

丶灬走出姿态 提交于 2020-01-15 14:47:28
问题 I am new to angular 4 here I have an accordion in the structure of Category,Group and Subgroup. If I clicked on category it shows all the groups in it and if I clicked on the groups it shows all the subgroups . Now everything is working fine . What I want to do is If I clicked on the Category again I want to close the accordion with all the groups which are opened before. In my case if I opened some groups and closed the accordion then If I opened again it shows the groups opened which I have

Limit image, title, and story height in cardview

删除回忆录丶 提交于 2020-01-15 11:43:09
问题 I started from https://startbootstrap.com/template-overviews/4-col-portfolio/. I made some changes and got to this: Images are provided externally and I have no control over their sizes. What I want to achieve is that all images should take 25% of the row height. Aspect ratio should be maintained so the width of the image can be decreased, the column width should remain the same. All titles should take maximum 50% (text trimmed if too long) and the remainder is filled with content text (text

Limit image, title, and story height in cardview

删除回忆录丶 提交于 2020-01-15 11:42:52
问题 I started from https://startbootstrap.com/template-overviews/4-col-portfolio/. I made some changes and got to this: Images are provided externally and I have no control over their sizes. What I want to achieve is that all images should take 25% of the row height. Aspect ratio should be maintained so the width of the image can be decreased, the column width should remain the same. All titles should take maximum 50% (text trimmed if too long) and the remainder is filled with content text (text

Limit image, title, and story height in cardview

我们两清 提交于 2020-01-15 11:42:08
问题 I started from https://startbootstrap.com/template-overviews/4-col-portfolio/. I made some changes and got to this: Images are provided externally and I have no control over their sizes. What I want to achieve is that all images should take 25% of the row height. Aspect ratio should be maintained so the width of the image can be decreased, the column width should remain the same. All titles should take maximum 50% (text trimmed if too long) and the remainder is filled with content text (text

Using gulp to install jquery & bootstrap4 returns undefined property error

北城以北 提交于 2020-01-15 06:39:04
问题 I am trying to build a wordpress site with bootstrap as a dependency using npm and gulp but cant seem to figure out why I keep getting this error when trying to run gulp: $$$1.fn.emulateTransitionEnd = transitionEndEmulator; ^ TypeError: Cannot set property 'emulateTransitionEnd' of undefined I installed jquery , popper and bootstrap using gulp and have added the following lines to my gulpfile.js : var gulp = require('gulp'); var sass = require('gulp-sass'); var concat = require('gulp-concat'

Bootstrap forms: How to dynamically create unique names for radio buttons

左心房为你撑大大i 提交于 2020-01-15 06:25:10
问题 This question is a follow-up to this one. This JSfiddle exemplifies what I want to achieve. Final Solution provided by @Scaramouche The function below is dynamically building up a "list" with radio buttons in groups of four. Each of these group should have a unique name, which makes it possible to choose one of the options while still making it possible to choose other options in the other "groups". What makes this a challenge is that this "list" is built with Bootstrap forms. How do I do, to

Bootstrap 4 Modal Not Closing Properly On Hide

穿精又带淫゛_ 提交于 2020-01-15 04:05:41
问题 I had this working in bootstrap 3 but in bootstrap 4 (beta) I've had no luck. The modal itself is coded like the following (simple sign in form) <div class="modal fade" id="signInModal" tabindex="-1" role="dialog" aria-labelledby="signInModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="signInModalLabel">Sign In</h5> <button type="button" class="close" data-dismiss="modal" aria-label=

Bootstrap 4 Modal Not Closing Properly On Hide

社会主义新天地 提交于 2020-01-15 04:03:13
问题 I had this working in bootstrap 3 but in bootstrap 4 (beta) I've had no luck. The modal itself is coded like the following (simple sign in form) <div class="modal fade" id="signInModal" tabindex="-1" role="dialog" aria-labelledby="signInModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="signInModalLabel">Sign In</h5> <button type="button" class="close" data-dismiss="modal" aria-label=

Scrolling Tabs in Bootstrap 4

▼魔方 西西 提交于 2020-01-14 13:48:10
问题 I am working on scrolling tab. Below is my code. I am facing problem that I am not able to click middle tabs. On right button click tabs scrolls move it gradually. What should I do to move tabs gradually? Please help var hidWidth; var scrollBarWidths = 40; var widthOfList = function() { var itemsWidth = 0; $('.list a').each(function() { var itemWidth = $(this).outerWidth(); itemsWidth += itemWidth; }); return itemsWidth; }; var widthOfHidden = function() { return (($('.wrapper').outerWidth())

Bootstrap 4 validating credit card with custom messages

帅比萌擦擦* 提交于 2020-01-14 06:40:32
问题 I am using bootstrap 4 validation. How can I validate the credit card number must be numbers and must be 16 digits and show appropriate message? I would like to show three separate messages. 1. If noting is entered, "Credit card number is required" 2. If user enters "xyz etc", then "numbers only" , 3. If user enters less than 16 numbers, then show message as ""CC must be 16 digits". How can we show multiple custom messages ? Please see the fiddle. Thanks! <html lang="en"> <head> </head> <body