angular-bootstrap

How to add a button in accordion header in bootstrap 3.0/bootstrap-ui?

孤街浪徒 提交于 2019-12-01 03:23:05
问题 I am trying to add a button to the accordion that has a dropdown menu but it doesn't seem to be working a: 1) button is too big so it goes past the accordions header. 2) The dropdown menu ends up inside the accordion header/group and not on top of everything else. What is the best way to fix these? I want The following is my code for the accordion group: <accordion-group is-open="true"> <accordion-heading> <div class="btn-group" style="float:right;"> <button type="button" class="btn btn-info"

Specify @Input() parameter for Angular root component/module

时光怂恿深爱的人放手 提交于 2019-11-29 13:28:56
I have 3 root components that get bootstrapped by the root AppModule . How do you go about specifying an @Input() parameter to one of those components? Neither <app-modal [id]="'hard-coded value'"></app-modal> <app-modal [id]="constantExportedByAppmodule"></app-modal> are picked up by AppModalComponent : @Input() id: string; It is undefined. As far as I know, you can not pass @Input() to a bootstraped component. But you can use another way to do that - pass the value as an attribute. index.html : <my-app myAttribute="myAttributeValue"> <div>Loading...</div> </my-app> app.component.ts :

Angular UI multi-level Dropdown Toggle

纵饮孤独 提交于 2019-11-29 10:46:17
I'm trying to use the Angular UI Dropdown Toggle to create a multi-level / nested drop down. When I click on the first level of the dropdown it simply closes up altogether and does not reveal the second tier. I've attached a very basic plunkr to demonstrate a bare bones version of what I'm trying to achieve. http://plnkr.co/edit/c0GbKQoYWICXwd3JRWGV?p=info Any help, greatly appreciated. Thanks Zymotik Sub-menu has been removed from Boostrap 3 as it is deemed irrelevant for mobile. "Submenus just don't have much of a place on the web right now, especially the mobile web. They will be removed

Angular UI Bootstrap Modal: [$injector:unpr] Unknown provider: $uibModalInstanceProvider

六月ゝ 毕业季﹏ 提交于 2019-11-28 20:28:48
This is a bit strange. When I search this issue online I see many pages of Google results and SO solutions... but none seem to work! In a nutshell, I am trying to implement AngularUI Bootstrap Modal. I keep getting the following error: Error: [$injector:unpr] Unknown provider: $uibModalInstanceProvider <- $uibModalInstance <- addEntryCtrl Here is my HTML: <nav class="navbar navbar-default"> <div class="container"> <span class="nav-col" ng-controller="navCtrl" style="text-align:right"> <a class="btn pill" ng-click="open()" aria-hidden="true">Add New</a> </span> </div> </nav> Here is my

Specify @Input() parameter for Angular root component/module

拜拜、爱过 提交于 2019-11-28 07:04:32
问题 I have 3 root components that get bootstrapped by the root AppModule . How do you go about specifying an @Input() parameter to one of those components? Neither <app-modal [id]="'hard-coded value'"></app-modal> <app-modal [id]="constantExportedByAppmodule"></app-modal> are picked up by AppModalComponent : @Input() id: string; It is undefined. 回答1: As far as I know, you can not pass @Input() to a bootstraped component. But you can use another way to do that - pass the value as an attribute.

Angular UI multi-level Dropdown Toggle

倖福魔咒の 提交于 2019-11-28 04:08:10
问题 I'm trying to use the Angular UI Dropdown Toggle to create a multi-level / nested drop down. When I click on the first level of the dropdown it simply closes up altogether and does not reveal the second tier. I've attached a very basic plunkr to demonstrate a bare bones version of what I'm trying to achieve. http://plnkr.co/edit/c0GbKQoYWICXwd3JRWGV?p=info Any help, greatly appreciated. Thanks 回答1: Sub-menu has been removed from Boostrap 3 as it is deemed irrelevant for mobile. "Submenus just

How to create a tooltip?

谁说我不能喝 提交于 2019-11-27 09:48:32
I want to make a custom CSS class for tooltip which will wrap a string of length more than 25-30.Usually such a long text doesn't fit into the tootltip text area. And is there anyway to do this using Tooltip (ui.bootstrap.tooltip) ? Like using custom CSS class to get the desired output. This is the simple css tooltip - Plunker DEMO Here is the code Snippet for the same : .tooltip { position: relative; display: inline-block; border-bottom: 1px dotted black; } .tooltip .tooltiptext { max-width:100px; padding:15px; min-height:30px; background:#fff; visibility: hidden; border: 1px solid black;

up/down arrow key issue with typeahead control (angular bootstrap UI)

我是研究僧i 提交于 2019-11-27 08:45:37
Check this PLNKR , i have implemented typeahead control, By default in type ahead control they are not setting any max-height or height to list, but as per requirement i have to fix height of list to 110px. So, when we have longer list at a time only 4 data will be shown and rest can be seen by scrolling down. Scrolling is working while user click on scroll up/down arrows, but it's not working with keyboard up/down keys. The problem is explained in steps:- Type something i.e "a" to get data in typeahead (list will be populated) Press down-arrow key (focus will be on list item) Press down-arrow

Using ui-router with Bootstrap-ui modal

泪湿孤枕 提交于 2019-11-26 08:49:26
问题 I know this has been covered many times and most articles refer to this bit of code: Modal window with custom URL in AngularJS But I just don\'t get it. I don\'t find that to be very clear at all. I also found this jsfiddle which was actually great, very helpful except this doesn\'t add the url and allow for me to use the back button to close the modal. Edit: This is what I need help with. So let me try explain what I am trying to achieve. I have a form to add a new item, and I have a link \