angular-strap

Selects droplist inside ngTable loses its scope

北战南征 提交于 2019-12-13 04:35:07
问题 If I put the Selects (select.js) droplist inside ngTable, and try to show the selection from outside the table, it loses its scope and doesn't show the selection. Hopefully, I was able to explain this. Here's the preview. In the preview, you will see a select droplist which has two output locations. One inside the table which works and another outside the table which doesn't. http://plnkr.co/edit/tQYmRrTjXOhTohsESpNo?p=preview 回答1: I solved your problem, and it had to do with levels of scope.

AngularStrap bs-dropdown with the “hover” trigger doesn't stay open long enough

允我心安 提交于 2019-12-12 13:22:55
问题 When using the bs-dropdown with the "hover" trigger, the menu doesn't stay visible long enough to allow the user to click on a menu item: http://plnkr.co/edit/Fi39BdCOqHXnPAgITD01?p=preview Using a delay makes it behave in unexpected ways: http://plnkr.co/edit/Y2Q63DDJEyP9CTPMUfYD?p=preview Ideally the dropdown should stay up as long as the mouse is on the menu, and disappear when the mouse leaves the menu. 回答1: That is because hover pseudoevent's mouseleave gets triggered when you hover out

Angular-Strap Radio Button won't update model

时间秒杀一切 提交于 2019-12-12 08:13:15
问题 I want to have a radio-button group as you can see in my code. I use AngularJs, Angular-Strap and Bootstrap. The problem is, that my variables in the controller won't update when I click another button. The default value is set. If i remove the labels around the input tags, the update occurs... I don't know if this is a bug, or if I am making something wrong.. I hope I provided any information you need. Thanks for any help!! Versions: AngularJS: 1.2.16 AngularStrap: 2.0.2 Bootstrap :3 HTML:

Angular-Strap collapse plugin, opening more than one panel at the time (?)

一曲冷凌霜 提交于 2019-12-12 05:39:21
问题 Hello folks this is the plugin http://mgcrea.github.io/angular-strap/##collapses I am trying to use this plugin in my app but isn't doing what I want, I want to use it more dynamically, as you can see in the example on the web page, you can have only one panel open at the time, and I want to give to the users the option to have open as many panels as they want, and this is my html: <div class="panel-group" ng-model="panels.activePanel" bs-collapse> <div class="panel panel-default" ng-repeat=

ng-click inside bs-tooltip not working

人盡茶涼 提交于 2019-12-12 02:48:58
问题 I'm using angular-strap tooltip and inside I have link that should react to ng-click , but instead it's not responding. .html <span class="add-on input-group-addon" data-title="{{tooltips.date}}" bs-tooltip> <i class="glyphicon glyphicon-calendar fa fa-calendar"></i> Dates </span> .js $scope.tooltips = { date: '<a class="btn btn-default" ng-click="select()">Select date</a>' }; $scope.select = function() { //doing something and works fine outside tooltip } In app .config() there is html set to

Using $popover service in Angular with Fullcalendar

女生的网名这么多〃 提交于 2019-12-11 08:24:04
问题 I have a calendar setup in Angular using FullCalendar. I am now trying to get a popover to show up using javascript only and without any DOM manipulation. I am trying to use the $popover service provided by Angularstrap. In the options of the calendar I do the following: eventMouseover: $scope.PopOnEventHover And the PopOnEventHover is what I am trying to use make the popover appear: $scope.alertOnEventHover = function(event, jsEvent, view, $popover, element){ var myPopover = $popover(element

AngularStrap. 2-way binding in popover

喜你入骨 提交于 2019-12-11 04:18:42
问题 Good day, I can successfully bind content into the popover body via template, but changes made inside this area are not bound back to the parent scope. Here is a quick example. Plunker I would be grateful for any help <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> <title>2-way binding popover</title> </head> <body> <div data-ng-app="myApp" data-ng-controller="defaultCtrl" style="margin: 100px 100px"> <button

Capture hide event in $modal of angular strap

本小妞迷上赌 提交于 2019-12-11 03:18:22
问题 I am using angular Strap to create a modal like : $modal({ template : "/templ/alert-with-title.html", content : content, title : title, show : true, backdrop : true, placement : 'center' }); I have the written the following : $scope.$on("modal.hide.before",function() { console.log("Closing1"); }); $scope.$on("modal.hide",function() { console.log("Closin2"); }); My /templ/alert-with-title.html is like this : <div aria-hidden="true" aria-labelledby="windowTitleLabel" role="dialog" tabindex="-1"

AngularStrap bs-select not updating ng-model

ε祈祈猫儿з 提交于 2019-12-10 10:23:41
问题 I'm using AngularStraps bs-select directive to add a multiple choice select button to one of my views. I'm trying to watch the values in this select box and run a search any time the values change. My select button looks like this. <button type="button" class="btn btn-primary" ng-model="subject_list" data-multiple="1" data-placeholder="All subjects" ng-options="subject.id as subject.name for subject in subjects" bs-select> Action <span class="caret"></span> </button> The problem is that

Close AngularStrap popover

↘锁芯ラ 提交于 2019-12-09 00:41:06
问题 When I click a button, it appears a popover which can be closed if you click the button inside the popover. However, if you click another button to open a popover, you will see two popovers at the same time and I want to keep just one. I have tried with the trigger 'focus', but it closes the popover if I click in the textarea inside the popover, I expected that this trigger was called when you click outside of the popover. Any idea for this? Can the methods $hide, $show be called from the