bootstrap-select

Opening bootstrap select in bootstrap table issue

醉酒当歌 提交于 2019-12-23 09:31:50
问题 The Problem I am using the bootstrap-table plugin and the bootstrap-select plugin, which both work very nice. But I get an issue when I use the bootstrap-select inside a bootstrap-table. If the select box of the last row opens, the table size changes instead of the selectbox going "over" the table area creating a scroll area which I do not like. Like in the image below: I have tried to "fix" this effect using the below javascript code, but to no avail. The code gets executed but the problem

how to get the clicked option in bootstrap selectpicker?

亡梦爱人 提交于 2019-12-22 10:38:26
问题 $('.excludeDaysPicker').selectpicker(); I have bootstrap selectpicker with 'multiple' choose option enabled. <select class="excludeDaysPicker" multiple title="Not Selected"> <option value="Monday" id="1" class="excludeDays">Monday</option> <option value="Tuesday" id="2" class="excludeDays">Tuesday</option> <option value="Wednesday" id="3" class="excludeDays">Wednesday</option> <option value="Thursday" id="4" class="excludeDays">Thursday</option> <option value="Friday" id="5" class=

.selectpicker is not a function

妖精的绣舞 提交于 2019-12-22 08:51:55
问题 I'm trying to use bootstrap-select and reference it from javascript, but I always get an error: .selectpicker is not a function Everything I've read about this error says I have a dependency missing or not loaded at the right time, but I'm at a loss as to what I'm missing. Also, I get the same error when I try $('.selectpicker').selectpicker(); from the console, which tells me that it's not an issue with my javascript running before everything's loaded. Here's the relevant portions of my page

Bootstrap-select plugin: how to avoid flickering

断了今生、忘了曾经 提交于 2019-12-22 03:15:28
问题 The Bootsrap-select plugin is amazing (http://silviomoreto.github.io/bootstrap-select/). It provides an extremely easy way of creating gorgeous select menus in Bootstrap. The one problem I've encountered with it, however, is "flickering" on page load. What I mean by this is fairly straight forward: The page loads with original HTML select element (which of course looks like crap) The Bootstrap-select plugin JS runs At some noticeable time after the page loads the original HTML select element

Using vue js with selectpicker

走远了吗. 提交于 2019-12-20 07:27:34
问题 I'm using Vue.js to add multiple rows, each row contain two datetimepicker inputs and a bootstrap-select. My problem is when I fill the inputs and click to add a new row the previous ones clear out, the reason is each time I add a new row I'm using setTimeout to referesh the selectpicker and the datetimepicker. So I want to know if there is a way to trigger the last added element them without refreshing the previous ones. Here is my code : HTML <div class="cols" id="app"> <ul style="list

How to change border color of Bootstrap-select

那年仲夏 提交于 2019-12-20 04:40:36
问题 For a custom framework like Bootstrap select https://silviomoreto.github.io/bootstrap-select/ how do I change the border color of a select box in Javascript? I tried this but does not work. document.getElementById("box").style.borderColor = "red"; Javascript function validate() { var ok = true; var box = document.getElementById("box").value; if (!box) { document.getElementById("box").style.borderColor = "red"; ok = false; } return ok; } HTML <form action="#" onsubmit="return validate()"

bootstrap-select dropdown options not getting loaded sometime

自闭症网瘾萝莉.ら 提交于 2019-12-19 11:53:29
问题 I'm using bootstrap-select 1.12.4 version with Angular 4.3.5. I'm trying to load the dropdown options using http call and async pipe. The issue I'm facing is, The select dropdown options are not getting loaded most of the time with I refresh the page. But sometimes the options load. I'm not sure what mistake I'm doing here. Can anyone help me here? Thanks in advance. component.ts import { Component, OnInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import {

unable to pass parameter to angular directive

你离开我真会死。 提交于 2019-12-13 04:38:49
问题 I want to initiate a third party control (bootstrap-select) after a collection has been assigned to a source variable. For that I am using a directive and watching a collection like this. angular .module('app').directive('bootstrapDropdown', ['$timeout', function ($timeout) { return { restrict: 'A', scope: { collectionName: '=' }, require: '?ngModel', link: function (scope, el, attrs) { el.selectpicker(); scope.$watchCollection(scope.collectionName, function (newVal) { $timeout( function () {

Problem with sintax of selectpicker('refresh')

ぃ、小莉子 提交于 2019-12-13 03:23:27
问题 I try to populate a select form with data from a json file. [{"matricola":"1", "nome":"aaaaa"},{"matricola":"2", "nome":"bbbbbb"}] If I use select it works, if i try to use selectpicker I do not understand where I have to refresh the selectpicker in my javascript code. Here my code: <div class="form-group "> <select id="cf" class="selectpicker show-tick form-control" data-dropup-auto="false" data-live-search="true" required="" name="cf"> </select> </div> <script> let dropdown = document

Extend bootstrap select plugin

丶灬走出姿态 提交于 2019-12-12 10:43:00
问题 In my previous question I was talking about the bootstrap select plugin where the destroy method is doing something that I don't want. I edit manually the plugin but this is not a good practice. Bootstrap select destroy removes the original select from DOM I would like to extend the plugin with a custom method so that it can do exactly wat I want. I extend the plugin with folloing method: $.extend(true, $.fn.selectpicker.prototype, { customRemove: function () { this.$newElement.remove(); this