twitter-bootstrap

ERROR TypeError: Cannot read property 'createText' of null in ngx-bootstrap with angular 6

混江龙づ霸主 提交于 2021-02-07 18:42:44
问题 I want to open ngx-bootstrap modal from a different component using @ViewChild in angular 6 but I am getting this error. ERROR TypeError: Cannot read property 'createText' of null at ComponentLoader.push../node_modules/ngx-bootstrap/component-loader/component-loader.class.js.ComponentLoader._getContentRef And in in Inspect Element this tag is also visible <bs-modal-backdrop class="modal-backdrop fade in"></bs-modal-backdrop> 回答1: You can use the selector to call other component on a modal in

Placeholder Color Change in Bootstrap

╄→гoц情女王★ 提交于 2021-02-07 17:03:15
问题 How can I change the Placeholder Color in Bootstrap? The following code, which I tried, doesn't work. input::-webkit-input-placeholder { color: red; } input:-moz-placeholder { color: red; } 回答1: .form-control::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ color: red; opacity: 1; /* Firefox */ } .form-control:-ms-input-placeholder { /* Internet Explorer 10-11 */ color: red; } .form-control::-ms-input-placeholder { /* Microsoft Edge */ color: red; } The following is the reference

Disable (exclude) bootstrap for one div on a page

混江龙づ霸主 提交于 2021-02-07 13:11:42
问题 I have an application that pulls custom old emails and displays them on a page in DOM. I want to exclude a div that contains this HTML email from bootstrap css. Something like this: <div class="email_container"> <!-- bootstrap CSS shouldn't apply here--> <div class="email"> <!-- neither here--> </div> </div> Is there a way this can be done? I did some research and saw people talking about LESS and SASS to solve this but is there a way to do this without them as I don't want to include LESS or

How to add text next to progress bar bootstrap?

蹲街弑〆低调 提交于 2021-02-07 12:45:16
问题 Hi I am trying to add some text to a progress bar in bootstrap. The way I want it to look is the follow: Java: x-x-x-x-x-x-x-x-x- C++ : x-x-x-x-x-x-x-x-x- where x-x-x-x-x-x-x-x-x- is the progress bar. I have written some code but I can't seem to get the text inline with the progress bar. Any help would be useful. I am using just bootstrap. <div class="panel panel-default" style="height:500px;overflow:scroll"> <div class ="panel panel-primary"> <div class="panel-heading"> <h4>Programming

Unable to set focus on an input of Twitter Bootstrap's Typeahead

蓝咒 提交于 2021-02-07 11:32:32
问题 When I remove these attributes: data-source="<?=str_replace('"', '"', json_encode($equipment, JSON_HEX_TAG | JSON_HEX_APOS)); ?>" data-items="4" data-provide="typeahead" I am able to perform this: $(document).ready(function() { $('.first').focus(); }); This is my HTML markup for this: <div class="itemx"> <input type="text" class="input-large first" autocomplete="off" placeholder="Equipment Name/Label" name="equip[]" data-source="<?=str_replace('"', '"', json_encode($equipment, JSON_HEX_TAG |

Bootstrap Scaffolding

大兔子大兔子 提交于 2021-02-07 10:44:54
问题 Hello I am currently trying to figure out how to get two classes to float side by side while using Bootstrap, What I wish to accomplish is to get my text to float to the left and image float to the right! Here is my code: <div class="row-fluid"> <div id="test-1" class="span6"></div> <div id="test-2" class="span6"></div> </div> body { background-color: black; } #test-1 { background-color: white; height: 200px; width: 200px; } #test-2 { background-image: url("http://www.rd.com/wp-content

Bootstrap Datetimepicker set date

穿精又带淫゛_ 提交于 2021-02-07 06:51:39
问题 I am using a datetimepicker from Eonasdan which works fine so far. I have a HTML element like this <div id="datetimepicker"></div> and use the datetimepicker function like this: $("#datetimepicker").datetimepicker({ inline: true, sideBySide: true, stepping: 5, locale: "de" }); The result looks like this: I want to update the date via Javascript using the date function. My try looks like this: $("#datetimepicker").data("DateTimePicker").date("2016-01-01"); Unfortunately this only returns a

How should I style Django validation errors with Bootstrap?

僤鯓⒐⒋嵵緔 提交于 2021-02-07 06:27:05
问题 When a form in Django has validation errors, the errors are given in a list with class errorlist . Elements can be given an error style with Bootstrap by setting class="alert alert-error" . What is the best way to combine these, and use Bootstrap's error style for validation errors on Django forms? 回答1: In Twitter Bootstrap, input elements are enclosed between "control-group" div or fieldset . So I would do something like this in template {%for field in form %} <div class="control-group {%if

How do you change the size of a size of an angular ui bootstrap date picker popup?

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-07 05:35:26
问题 Here's what I'm referring to: http://angular-ui.github.io/bootstrap/ I don't see anything that indicates how to control the size. I tried changing the body font but that didn't work out 回答1: This size of the datepicker can be changed by overriding the css for the bootstrap form-control and btn classes as shown in the following example: .my-datepicker .form-control { height: 10px; padding: 11px; } .my-datepicker .btn { padding: 1px 2px; } then apply the my-datepicker class to the datepicker

Table cell width with bootstrap

。_饼干妹妹 提交于 2021-02-07 05:13:49
问题 I have a simple table with two columns, I would like the to set the width of each of these columns, for example left column 30% right column 70%. Eventually I will have hundreds of rows so If I can apply a global css class I guess that would be best? Currently the left column is compressed and doesn't look good. I have created a jsfiddle if somebody could lend some assistance. <div class="container"> <div class="row col-md-8"> <table class="table table-striped"> <tr> <td>row name here</td>