angular-ui-bootstrap

Angular UI bootstrap - show dropdown on typeahead-no-results

让人想犯罪 __ 提交于 2020-01-03 10:05:28
问题 tryng to get a dropdown when no result on typeahead but, the drop down menu dosen't show view <div class="dropdown"> <div class="form-group"> <input placeholder="Vælg kunde" type="text" ng-model="customer" typeahead-editable="false" uib-typeahead="customer as customer.customer for customer in customers | filter:$viewValue | limitTo:8" class="form-control" typeahead-popup-template-url="customPopupTemplate.html" typeahead-min-length="0" typeahead-no-results="noResults"> </div> <div ng-if=

Show tooltip only when the text is truncated in angular UI bootstrap directive

杀马特。学长 韩版系。学妹 提交于 2020-01-03 09:04:08
问题 I want to show angular UI bootsrap tooltip only when the text is truncated. I tried the below code with custom directive <div tooltip="{{value}}" tooltip-append-to-body="true" enable-truncate-tooltip>{{value}}</div> .directive("enableTruncateTooltip", function () { return { restrict: 'A', link: function (scope, elem, attr) { elem.bind('mouseenter', function () { var $this = angular.element(this); if (this.offsetWidth >= this.scrollWidth) { angular.element('.tooltip').attr('hide-tooltip', true

Show tooltip only when the text is truncated in angular UI bootstrap directive

*爱你&永不变心* 提交于 2020-01-03 09:04:04
问题 I want to show angular UI bootsrap tooltip only when the text is truncated. I tried the below code with custom directive <div tooltip="{{value}}" tooltip-append-to-body="true" enable-truncate-tooltip>{{value}}</div> .directive("enableTruncateTooltip", function () { return { restrict: 'A', link: function (scope, elem, attr) { elem.bind('mouseenter', function () { var $this = angular.element(this); if (this.offsetWidth >= this.scrollWidth) { angular.element('.tooltip').attr('hide-tooltip', true

Angularjs ui tabset scope not updating

℡╲_俬逩灬. 提交于 2020-01-03 05:56:44
问题 I am using tabs from angular ui bootstrap. All works fine but I noticed that text boxes inside the tab is not updating the scope although using ng-model. I searched and found out that it is because of child scope and advise of using obj.property notation while binding. but still my model is not being updated. Please guide where I am going wrong. wbProcess.controller ("createProCtrl", function ($scope, $http, global, user){ $scope.project = [{protitle :""}, {prodesc : ""}, {chkarchive : false}

How to design a dynamic progress bar with stages and scalable input with angularjs?

旧街凉风 提交于 2020-01-03 05:49:26
问题 I am trying to develop a progressive bar for fund raising activities. The minimum value is the value for the activity to take place and the maximum value is the max fund it can take. It will be the best if the color of progressive bar to be red before it reaches minimum marker and it turns into green afterwards. This is what I have in mind for progress bar http://www.icondeposit.com/local--files/imageid:268/UI-Progress-Bars.jpg This is what I have achieved so far https://www.dropbox.com/s

Date picker is not working in AngularJS (ng-grid) “editableCellTemplate”

时光怂恿深爱的人放手 提交于 2020-01-03 05:16:07
问题 columnDefs: [{ displayName: 'Date', field: 'date', editableCellTemplate: '<input type="text" ng-class="\'colt\' + col.index" ng-input="COL_FIELD" ng-model="COL_FIELD" datepicker-popup="dd-MM-yyyy" datepicker-append-to-body=true />', enableCellEdit:true }] http://plnkr.co/edit/5kr8lPIMJtWHVFEgzlu1 date-picker is not working edit template, act just like normal edit input... 来源: https://stackoverflow.com/questions/23394619/date-picker-is-not-working-in-angularjs-ng-grid-editablecelltemplate

UI Bootstrap Typeahead not returning async values

隐身守侯 提交于 2020-01-03 05:12:17
问题 I am trying to do an autocomplete search using UI Bootstrap Typeahead to select a category from a database. I have set up an example database with 4 categories, the final one will contain more than a thousand categories. When I start typing, the search results return 4 rows (so something must be working, because I tried to change the number of rows in the DB and the search result mirrors the total number of rows) but with no value. However, it doesn't matter what I write so it doesn't seem to

Angular UI tooltip in ng-repeat not closing

牧云@^-^@ 提交于 2020-01-02 09:56:46
问题 Please see the plunker below: http://plnkr.co/edit/RPpjULZsSDnTFPKiafl2 Basically, the angular-ui tooltip remains when moving up / down to a position where ng-disabled is true. Any thoughts on how to fix the issue would be much appreciated! I'm using Chrome, but the issue appears more serious in Firefox where even with ng-disabled removed the tooltips still remain on mouseleave. 回答1: You can use the $tooltipProvider and alter the trigger map to take click as an additional hide trigger for the

How to add angular directive to full calendar event

雨燕双飞 提交于 2020-01-02 07:08:06
问题 I'm using Angular-UI Calendar (angular version of Arshaw's fullcalendar) and on EventRender I would like to add a Angular-UI-bootstrap popover to the event element. I have tried these (using coffeescript): eventRender: (event, element) -> element.find(".fc-event-inner").wrap("<div popover='I appeared on mouse enter!' popover-title='The title.' popover-trigger='mouseenter'></div>") and eventRender: (event, element) -> element.find(".fc-event-inner").wrap($compile("<div popover='I appeared on

How to add angular directive to full calendar event

a 夏天 提交于 2020-01-02 07:07:12
问题 I'm using Angular-UI Calendar (angular version of Arshaw's fullcalendar) and on EventRender I would like to add a Angular-UI-bootstrap popover to the event element. I have tried these (using coffeescript): eventRender: (event, element) -> element.find(".fc-event-inner").wrap("<div popover='I appeared on mouse enter!' popover-title='The title.' popover-trigger='mouseenter'></div>") and eventRender: (event, element) -> element.find(".fc-event-inner").wrap($compile("<div popover='I appeared on