notie icon indicating copy to clipboard operation
notie copied to clipboard

Feature/confirm classes

Open ryansh100 opened this issue 9 years ago • 3 comments

Adding extra styling and positional control for the confirm method.

ryansh100 avatar Mar 21 '17 16:03 ryansh100

Do you take contributions on this project? I just haven't heard any feedback on issue or pull request.

ryansh100 avatar Mar 24 '17 18:03 ryansh100

I do sometimes, it depends. Thanks for doing this work. To be honest I'm not sure if I'll incorporate the style portion but you bring up a great point about the confirm button positions being changeable.

jaredreich avatar Mar 24 '17 18:03 jaredreich

I'd love to see this merged. I need to style the confirm button differently for one particular confirm notie (It's an 'are you sure you want to delete that?' dialog box, with a red 'Delete' button as the confirm button).

Currently the only want I can achieve this is to change the global notie options for the 'backgroundSuccess' class, and then change it back to the default class after this particular confirm box is dismissed.

      `notie.setOptions({
            classes: {
                backgroundSuccess: 'notie-background-delete'
            }
        });

        function resetNotie() {
            notie.setOptions({
                classes: {
                    backgroundSuccess: 'notie-background-success'
                }
            });
        }`

JamesMcKenzieJHTNA avatar Sep 06 '17 16:09 JamesMcKenzieJHTNA