Giter Site home page Giter Site logo

support for className? about ngbootbox HOT 3 CLOSED

tarlepp avatar tarlepp commented on July 23, 2024
support for className?

from ngbootbox.

Comments (3)

eriktufvesson avatar eriktufvesson commented on July 23, 2024

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.

tarlepp avatar tarlepp commented on July 23, 2024

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.

eriktufvesson avatar eriktufvesson commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.