Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

specifying default options #79

Closed
lanterndev opened this issue Jan 21, 2013 · 3 comments
Closed

specifying default options #79

lanterndev opened this issue Jan 21, 2013 · 3 comments

Comments

@lanterndev
Copy link
Contributor

I'm using http://angular-ui.github.com/bootstrap/#/modal and http://angular-ui.github.com/bootstrap/#/tooltip and would like to be able to specify the following options for all my modals:
{
backdrop: true,
backdropClick: false,
backdropFade: true,
modalFade: true,
keyboard: false
}

as well as tooltip-animation="true" for all my tooltips.

Specifying default options doesn't seem to be documented though, and I haven't been able to figure it out by reading the source. Can anyone point me in the right direction please? If so, I can make a PR with this added to the docs if that would help.

@pkozlowski-opensource
Copy link
Member

@Skivvies We don't have a definitive solution for defaults figured out right now. There were few discussions here: #10 but nothing was decided. We are hesitating between a constant, a value or a provider.

What would be your preferred way of providing default config?

@lanterndev
Copy link
Contributor Author

Thanks @pkozlowski-opensource, I missed that ticket. A constant is the most obvious way to me to do it, but take that with a grain of salt since you guys have a lot more experience. I'd be happy with any way I could get this working. But thank you for asking. Added #10 to my watch list. Will follow any future discussion and contribute if I can.

@pkozlowski-opensource
Copy link
Member

@Skivvies I'm trying to clean-up the issues backlog to actually focus on actionable items so I'm going to close this one as duplicate of #10. Rest assured that we definitively want to address this item (there is even a first PR for this already)!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants