angular-ui-bootstrap

How to apply font-family in ng-option for each option

谁说胖子不能爱 提交于 2019-12-11 00:01:56
问题 I want to show a combobox whose all option font will be different. When using the ng-options directive in AngluarJS to fill in the options for a <select> tag I cannot figure out how to set the font-family for each option. $scope.reportFontload=["Andale Mono","Arial","Arial Black","Bitstream Charter","Century Schoolbook L","Comic Sans MS","Courier 10 Pitch","Courier New","DejaVu Sans"]; <select ng-options="font for font in reportFontload" ng-model="selected"> <option value="" disabled selected

How does Angular Bootstrap $modal animate out?

拜拜、爱过 提交于 2019-12-10 23:37:01
问题 I'm not using any bootstrap styles. I'm customizing everything completely. It's fairly straight forward to animate in, because the $modal uses .fade.in . I was able to override those styles and it works great. But how does the modal animate out? I see no classes being applied or removed. It is simply removed from the DOM instantly. How can I customize the animate out event? Does it use CSS classes? Does it use JS? It seems this question is very similar: https://stackoverflow.com/questions

UI Bootstrap tooltip in a table moves everything on the right

江枫思渺然 提交于 2019-12-10 22:49:09
问题 I have few problems by using the UI Bootstrap. I want to use the tooltips. But when I put the tooltip on my TD element. And then I hover it the tooltip shows but, all the things in the same row on the right of the hovered cell moves more on the right. <table class="table"> <tr> <th></th> <th ng-repeat="jr in Jours">{{jr.jour}}</th> </tr> <tr ng-repeat="horaire in triPlan(planning)"> <td>{{heurePlanning[horaire.id[0]]}}</td> <td class="abraca" ng-click="selectHoraire(horaire)" ng-repeat="rdv

Adding Pace.js loader to angular.js modal containing videos

六月ゝ 毕业季﹏ 提交于 2019-12-10 22:45:32
问题 I have angular ui bootstrap modal which has videos, I have posted same question week ago here is the link of that question my previous question , but did'nt got any response, anyhow i found pace.js adds loader automatically. Now can anybody tell me how do i add pace.js loader for modal containing videos. I have added this loader for my pages in app but not getting how to use with modal. Thanks This is the snap where two pace loaders collaborating 来源: https://stackoverflow.com/questions

Change amount of time Bootstrap tooltips display / fade in and out

限于喜欢 提交于 2019-12-10 21:31:44
问题 I'm adding tooltips using Twitter Bootstrap, is there an attribute I can add which determines how long a tooltip displays for / how long it takes to fade in and out? <span class="myClass" data-tooltip="{{myData}}" data-tooltip-placement="right"></span> Cheers 回答1: Bootstrap uses the class .fade for the opacity change of the tooltips. It looks like this in the CSS file: .fade { opacity:0; -webkit-transition: opacity .15s linear; -o-transition: opacity .15s linear; transition: opacity .15s

UI Bootstrap Typeahead: Make input invalid if no option is selected

寵の児 提交于 2019-12-10 20:54:18
问题 I am using a validation plug-in based on jQuery validation in my AngularJS app (which is built on top of a jQuery library). The category input (search field) is required. But if I fill it with text and don't select a matching search I can still submit it because there is text in the search field. How can I make it invalid if no option is selected? Plunkr: http://plnkr.co/edit/ZYP58GxITghkTqE7PNHy HTML (help.html) <div class="form-group"> <label for="category">Category "{{formData.category}}"<

Angular directive for bootstrap popover

随声附和 提交于 2019-12-10 17:43:30
问题 I write my custom directive for bootstrap popover, but face some trouble. This is the code: angular.module('CommandCenterApp') .directive('bzPopover', function($compile,$http, $commandHelper) { return{ restrict: "A", replace: false, scope: { currencies:"=data", selected:"=selected" }, link: function (scope, element, attrs) { var html = '<div class="currency-popup">' + '<span class="select-label">Select currency:</span>'+ '<select class="custom-select" ng-model="selected" ng-options="currency

Translate Angular-UI pagination

雨燕双飞 提交于 2019-12-10 16:19:40
问题 How can I translate text in Bootstrap UI pagination directive? I've overrided the constants like this for french translation: angular.module('myapp', ['ui.bootstrap']) .constant('paginationConfig', { itemsPerPage: 10, boundaryLinks: false, directionLinks: true, firstText: 'Premier', previousText: 'Précédent', nextText: 'Suivant', lastText: 'Dernier', rotate: true }) But overriding constants seems to be a bad idea... What is the correct way (if any) to do this? 回答1: Rather than overiding the

How to see whether modal is open in Angular UI Bootstrap

旧街凉风 提交于 2019-12-10 15:41:42
问题 I'm using Angular UI Bootstrap. If a modal is open, I'd like to display true . If it's not open, I'd like to display false . Is there a way to do this within the HTML? I tried using the following code, but it's wrong: <code>myForm.$modalStack.opened={{myForm.$modalStack.opened}}</code> Any thoughts on how to do this correctly? Below the relevant code I'm using to trigger the modal: HTML: <button ng-click="myForm.agreement()"> Code in Controller: .controller('MyFormCtrl', function ($location,

Angular ui bootstrap $uibModalInstance breaks down unit tests

自古美人都是妖i 提交于 2019-12-10 15:17:38
问题 By using the $uibModal service to open a modal window, we need to inject the $uibModalInstance in the modal controller to close or dismiss the modal window, this injection break down my unit tests. script.js angular.module('demo', ['ui.bootstrap']) .controller('MainController', MainCtrl) .controller('UIModalController', UIModalCtrl); /** @ngInject */ function MainCtrl($log, $uibModal) { var vm = this; vm.openModal = function() { $log.log('Opening Modal..'); $uibModal.open({ templateUrl: