angular-ui

Getting Angular UI Calendar to work with UI-Bootstrap Tooltips

回眸只為那壹抹淺笑 提交于 2020-01-13 14:54:53
问题 I am trying to display a tooltip on angular UI calendarEvent's mouse-hover. I managed to do this as explained in the following thread, Tooltip for fullcalendar in year view $scope.eventMouseover = function (calEvent, jsEvent) { var tooltip = '<div class="tooltipevent">' + calEvent.description + '</div>'; $("body").append(tooltip); $(this).mouseover(function (e) { $(this).css('z-index', 10000); $('.tooltipevent').fadeIn('500'); $('.tooltipevent').fadeTo('10', 1.9); }).mousemove(function (e) {

How to insert text/symbols from a custom button on textAngular toolbar

妖精的绣舞 提交于 2020-01-13 11:03:58
问题 Essentially I want to add a button to the toolbar to allow the user to insert © into the textangular editor (http://textangular.com/), however I am having trouble understanding how to add functionality to my button after it has been registered... As all the examples for custom functionality on the textangular site use the same statement "wrapSelection" which has very minimal documentation, an example of this is shown below with the quote button. taRegisterTool('quote', { iconclass: 'fa fa

angular ui modal after close event

杀马特。学长 韩版系。学妹 提交于 2020-01-11 17:14:13
问题 Is there a way I can call a function after a modal window got called (no matter if it happened with a button or by clicking on the backdrop) var dialog, options; options = { windowClass: "lightBox" templateUrl: "url to the template", controller: "some random controller", scope: $scope }); $("body").css({ 'overflow': 'hidden' }); dialog = $modal.open(options); dialog.result.then(function() { $("body").css({ 'overflow': 'auto' }); }); I want that everytime the modal windows closes the function

Modal Window Issue (Unknown Provider: ModalInstanceProvider)

柔情痞子 提交于 2020-01-10 12:12:01
问题 New to AngularJS and can't seem to find out what this error means. I've found a few others with the same error but it seems their issues don't correlate to mine. Unknown provider: $modalProvider <- $modal error with AngularJS (Seems I've got the latest ui-bootstrap version) And all of the others seem to be having scope issues with a modal, yet I can't seem to get the modal to begin with so I'm thinking these aren't related. Please tell me if I'm wrong and how that's the case: Scope issue in

angular bootstrap datepicker get visible dates (day mode)

蓝咒 提交于 2020-01-07 08:49:07
问题 I need to get visible dates from the Datepicker if mode is day. Example: In this case I need to get these 42 days. Also if user change month, I should refresh the Datepicker controller view and get new 42 days. 回答1: So i managed to fix this. We need to extend uibDatepickerDirective angular.module('ui.bootstrap.datepicker') .config(function ($provide) { $provide.decorator('uibDatepickerDirective', function ($delegate, $timeout) { var directive = $delegate[0]; var link = directive.link; angular

UI-Router, how to get the name of the 'state' And How send it to the function That brings Template state

 ̄綄美尐妖づ 提交于 2020-01-07 03:07:07
问题 I start in angular And I want to write a function that will bring template For each state And just when need it. As the principle of "Lazy loading" And after that keep it in the cache when it's the first time I wrote this code But I have errors, and I do not know what I'm wrong, Some things I did not understand in angular so I understand the problematic in my code this is all my code : http://plnkr.co/edit/qzKJUwNImVX8EGb3ymnT?p=preview var app = angular.module('myApp', ['ui.router']); var

How do I check if a username is taken with parse.com when all User ACL:Public read/write is disable?

我只是一个虾纸丫 提交于 2020-01-07 03:05:08
问题 How do I check if a username is taken with parse.com Javascript SDK when ACL:Public read/write is disable in all users inside User's class? Explanation: For security reasons all my users in class/table User have a private ACL (Access control list), or in other words the ACL for public read/write is disable, it means that authenticated users can read only their own information. As you can imagine any query to Users will get empty to non logged In users so there is no way to check if a user is

Reloading only child state

元气小坏坏 提交于 2020-01-06 14:27:58
问题 I have nested UI states. I want to load only child state not the parent state. Child State : $stateProvider.state('app.test', { url: '^/test?search', controller: 'TestController', templateUrl: 'test/test.tpl.html', pageTitle: 'Tests', }); Parent State : $stateProvider.state('app', { url: '/app', abstract: true, templateUrl: 'parent/main-content.tpl.html', controller: 'ParentController' }) When I try to load only child state in test page using $state.go('.', {search: searchTerm}); It loads

angular-ui > ui-utils > ui-scroll does not work (v. 0.1.0)

陌路散爱 提交于 2020-01-05 18:58:20
问题 I am using this: http://angular-ui.github.io/ui-utils/ and to be more specific this:https://github.com/angular-ui/ui-utils/blob/master/modules/scroll/README.md however it does not seem to work. Here is an example: <div ng-scroll-viewport style="height:240px;" class="chat-messages"> <div class="chat-message" ng-scroll="chat in chats"> <div ng-class="$index % 2 == 0? 'sender pull-right' : 'sender pull-left'"> <div class="icon"> <img src="{{chat.img}}" class="img-circle" alt=""> </div> <div

dropdown closes on focus

若如初见. 提交于 2020-01-05 08:14:33
问题 I want to trigger dropdown open on focus on input field. But it openes and suddenly closes every time I focus. With button toggle everything is ok. Here is example: http://codepen.io/piernik/pen/ByKRwE Here is HTML <div class="input-group"> <input type="text" class="form-control" ng-focus="show($event)"> <div class="input-group-addon"><i class="fa fa-fw fa-calendar"></i></div> </div> <a class="btn btn-default" ng-click="toggleDropdown($event)">toggle</a> <div class="dropdown" dropdown is-open