angular-ui-bootstrap

Angular JS access form in scope inside Angular Bootstrap tab

允我心安 提交于 2019-12-11 12:32:58
问题 I have a form in an Angular JS 1.4.1 prototype. I have a class on it set when it's dirty. I am trying to simulate someone "saving" the form, and therefore it's not dirty, it's "saved" so the changes are still present, but no longer dirty. Form fragment: <div class="override"> <tabset> <tab heading="My Tab"> <form name="overridesForm"> <p><input ng-model="rd.isOverriden" type="checkbox"> Foobar</p> <div class="buttons save-cancel"> <button class="btn btn-default btn-xs" ng-click="overridesForm

Angularjs ui bootstrap - put html inside popover

百般思念 提交于 2019-12-11 12:22:22
问题 I'm using official angular bootstrap directives . I want to use of of it's popovers . In the documentation it says that if you want to insert html inside the popover you should use popover-html , like bellow : <button popover-html="{{getTag()}}" type="button" class="btn btn-default">Dynamic Popover</button> <button popover-html="<a>Just fucin show me !</a>" type="button" class="btn btn-default">Click me </button> But this will raise the following console error : Error: [$parse:syntax] Syntax

remove clicked item angularjs

有些话、适合烂在心里 提交于 2019-12-11 11:57:42
问题 I have a click event where I want to remove from scope an element with a given id <a data-placement="bottom" ng-click='Off(product.productid)'><i class="fa fa-times"></i></a> app.js 'use strict'; var konfigurator = angular.module('konfiguratorApp', [ 'ngRoute', 'konfiguratorApp.filters', 'konfiguratorApp.services', 'konfiguratorApp.directives', 'konfiguratorApp.controllers', 'ui.bootstrap', 'xeditable', 'ngSanitize' ], function($interpolateProvider) { $interpolateProvider.startSymbol('<%');

Attach click event for the weekday labels in Angular UI Bootstrap datepicker

为君一笑 提交于 2019-12-11 10:53:56
问题 I'm using Angular UI Bootstrap datepicker with the gm.datepickerMultiSelect extension and I'd like to make weekdays labels clickable, so that I could select all days in the month (like all Wednesdays). I can get/calculate all days of the same weekday and add them to the selected days scope, but as I'm rather new to AngularJS & Bootstrap UI, I can't find the right way to trigger that click event for the labels. 回答1: Angular UI Bootstrap lets you override their directive's templates. You can

Model does not persist using uib-typeahead with ng-repeat

余生长醉 提交于 2019-12-11 10:48:15
问题 I am trying to use uib-typeahead to select one or more objects (via an ng-repeat ), but facing an issue where the model does not persist when adding another object. This is reproduced on Plnkr here (based on ui-bootstrap's demo). (Reproduce the error by selecting a state, then clicking "Select another". The previously selected state disappears!) What is causing the model to not persist? How can this be fixed? Is it an issue with uib-typeahead ? Or the ng-repeat scope? NB: I am also using a

Not able to navigate ngbpopover close button using tab

回眸只為那壹抹淺笑 提交于 2019-12-11 08:17:28
问题 I have used the separate close button to close the popover but not able to navigate to the close button using keyboard. "@ng-bootstrap/ng-bootstrap": "^4.1.0", code: <div> <ng-template #popContent> <span id="glossary"> {{element.description| glossary:glossaryDescription}}</span> <button class="close" (click)="p.close()" tabindex="0"><img src="assets/icons/close.svg"></button> </ng-template> <button class="popoverLink" [ngbPopover]="popContent" [autoClose]="false" triggers="manual" #p=

Open AngularUI Bootstrap Typeahead Matches Results via Controller

十年热恋 提交于 2019-12-11 07:14:22
问题 Is there anyway to trigger opening the match results on a typeahead input text box from the controller? use case: user goes to https://example.com/search/searchText controller of page sets the input text to "searchText" (ng-model) on initialization trigger showing the typeahead results from the controller I can only seem to get the typeahead results, obviously, while typing in the input text box. 回答1: I got it to work in a couple ways, but both require changes to ui-bootstrap. I suppose I

Bootstrap Dropdownlist Issue in angular JS

落爺英雄遲暮 提交于 2019-12-11 06:13:40
问题 I am trying to use ng-repeat in bootstrap dropdown menu, but it does not display the list of elements in drop down. am i missing anything in populating the elements of drop down list from a method defined in controller. <button type="button" class="btn btn-default btn-sm" title="Results Per Page"> <span class="dropdown" dropdown> <a href class="dropdown-toggle" dropdown-toggle> <span class="caret"></span> {{Temp.obj.pageSize}} Results Per Page </a> <ul class="dropdown-menu"> <li data-ng

Using angular-ui-bootstrap and a fixed sidebar

拜拜、爱过 提交于 2019-12-11 05:42:25
问题 I've seen several examples of using bootstrap ScrollSpy / Affix, but I'm having a hard time applying that to angular-ui-bootstrap. I would like to have a left-sidebar on my UI, that is fixed (it's position remains even when the rest of the page is scrolling). I have two plnkr's. One shows a non-fixed (but mostly functional) sidebar, the other shows an ALMOST working fixed sidebar - but the content pushes the width out further than it should. In the second example, if I could figure out how to

How to communicate between directive (tree component) and any other controller or directive in AngularJS app?

巧了我就是萌 提交于 2019-12-11 04:50:03
问题 First of all, I have read so much info you all share about communication between controllers, that I'm now so confused about the BEST way to do it. I understand I should use service, but don't really know what it means from the examples you all wrote. Here is my scenario: Left side of my page I have a side bar with a simple folder/files tree. I have used angular Tree Component and it works great for me: http://jimliu.github.io/angular-ui-tree/ On the right side of the page, I have a view that