Comments (3)
Support for className is now added.
<button class="btn btn-lg btn-primary"
ng-bootbox-title="A cool title!"
ng-bootbox-custom-dialog="Some custom text"
ng-bootbox-buttons="customDialogButtons"
ng-bootbox-class-name="some-class">
Custom dialog
</button>
from ngbootbox.
First of all thanks for this!
I was wondering if more "common" solutions would be helpful for this kind of problems. Eg. when someone notices next not supported option value that is needed, again you need to make some changes for supporting that.
How about "common" ng-bootbox-options="customOptions" that are just merged to actual bootbox dialog, alert, confirm, etc. What do you think about this?
Also it would be very nice, if you linked those commits to each issue, so it's easier to see actual changes of each issue.
from ngbootbox.
Hi again,
Sorry for the late reply. Thanks for pointing out that I should reference
the issues in my commits. I'm kind of new to Github and this is my first
open source project.
I have now added a ng-bootbox-options parameter to the custom dialog. You
can use it like this:
https://gist.github.com/eriktufvesson/d388ea4a44da2ec5548f
I have also added a setDefaults method to the $ngBootbox factory.
To my knowledge, you can't specify specific options for the alerts,
confirms and prompts in bootbox. However, the setDefaults apply to those.
Please correct me if I'm wrong, but I can't find anything on this matter in
the API Docs.
Best regards
Erik
2014-12-10 20:15 GMT+01:00 Tarmo Leppänen [email protected]:
First of all thanks for this!
I was wondering if more "common" solutions would be helpful for this kind
of problems. Eg. when someone notices next not supported option value that
is needed, again you need to make some changes for supporting that.How about "common" ng-bootbox-options="customOptions" that are just merged
to actual bootbox dialog, alert, confirm, etc. What do you think about this?Also it would be very nice, if you linked those commits to each issue, so
it's easier to see actual changes of each issue.—
Reply to this email directly or view it on GitHub
#5 (comment)
.
from ngbootbox.
Related Issues (20)
- confirm has no title,can u add one ? HOT 1
- Issue with updating $scope using callback function HOT 3
- How to disable dialog button during callback?
- controller for custom dialog
- Optional attribute to center vertically the modal
- ng-bootbox-prompt attribute for default value?
- Need to use $ngBootbox in angular.config
- How to close custome dialog programatically ? HOT 1
- Bind events via customDialog
- confirm or dismiss the dialog via angularJS HOT 1
- [PATCH] Make customDialog method return an promise to the bootbox dialog instance
- Prevent from close on success button click.
- Version for Angular2
- Update the package on npm HOT 1
- Partial not showing HOT 1
- Customize buttons on prompt
- Prompt input type
- Cannot use inline conditionals in templates using ng-if attribute
- multiple custom modals on same view (same controller) HOT 1
- Attach event when modal opens HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngbootbox.