Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alertify.js Position set not working #138

Open
DRakeshKumar opened this issue May 26, 2017 · 2 comments
Open

Alertify.js Position set not working #138

DRakeshKumar opened this issue May 26, 2017 · 2 comments

Comments

@DRakeshKumar
Copy link

Expected behavior

when I am setting the position for top-right,It should show notification in top-right.
Here, I am using the below Syntax.
alertify.set('notifier','position', 'top-right');
alertify.success('Current position : ' + alertify.get('notifier','position'));

Actual behavior

when i am giving position, its not working and throwing error that alertify.set is not a function.
alertify

Steps to reproduce the behavior

Version of Alertify in use

"alertify.js": "^1.0.12"

@DRakeshKumar
Copy link
Author

I am using alertify.js with angular 4

@DRakeshKumar
Copy link
Author

Here is the solution..
->Put the below syntax in your stylesheet.
.alertify-logs.right {
right: 0;
width: 20%;
}
.alertify-logs.right > .default,
.alertify-logs.right > .success,
.alertify-logs.right > .error {
transform: translateX(-5%);
transform: translateY(20%);
text-align: left;
}
-> use this in your template.
alertify.logPosition("top right");
alertify.error('thanks,it worked like a charm')

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

No branches or pull requests

1 participant