Comments (8)
Hello, thanks for the compliment :)
Are you sure they aren't working? Could you provide a code sample please?
Because i'm testing them locally and they seam to be working. For starters it's not maxStacks it's maxStack.
You can check out the example folder and play around with the options on line 60 of the app.ts file.
from angular2-notifications.
Filip.
Thank you for your response! I changes maxStacks to maxStack and looks like everything is working perfectly including lastOnBottom.
Is it possible to have the notification appear at the top center of the browser?
Cheers!
Chris
Christopher McGregor
415.624.6261 // [email protected]
On Apr 19, 2016, at 8:19 AM, Filip Lauc [email protected] wrote:
Hello, thanks for the compliment :)
Are you sure they aren't working? Could you provide a code sample please?
Because i'm testing them locally and they seam to be working. For starters it's not maxStacks it's maxStack.You can check out the example folder and play around with the options on line 60 of the app.ts file.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #20 (comment)
from angular2-notifications.
Yes it is. All you have to do is style the simple-notification-wrapper class.
It's located in the src/simpleNotifications.component.ts file.
But you can also just add the style to you'r css, in that case you need to include the !important verb. For example this would place them at the top center 20px from the top.
.simple-notification-wrapper {
top: 20px !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
margin: auto !important;
}
from angular2-notifications.
Thank you!
On Apr 19, 2016, at 10:00 AM, Filip Lauc [email protected] wrote:
Yes it is. All you have to do is style the simple-notification-wrapper class.
It's located in the src/simpleNotifications.component.ts file.
But you can also just add the style to you'r css, in that case you need to include the !important verb. For example this would place them at the top center 20px from the top.
.simple-notification-wrapper {
top: 20px !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
margin: auto !important;
}
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #20 (comment)
from angular2-notifications.
It's no problem 👍
from angular2-notifications.
Filip,
I added the following in my css and everything worked great:
.simple-notification-wrapper {
top: 20px !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
margin: auto !important;
}
I need to add display:none by default and have your library change the display attribute when needed.
.simple-notification-wrapper {
top: 20px !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
margin: auto !important;
display: none;
}
Is there a simple way do this?
Cheers!
Chris
Christopher McGregor
415.624.6261 // [email protected]
On Apr 19, 2016, at 10:25 AM, Filip Lauc [email protected] wrote:
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #20 (comment)
from angular2-notifications.
Hi,
I'm not really sure about what you are trying to achieve but this might be it:
CSS
.simple-notification-wrapper {
display: none;
}
.active {
display: block;
}
HTML
<simple-notifications [class.active]="isActive">
JS
public isActive = false;
Then when you want it to have the display: block style just set the isActive variable to true somewhere in your code.
from angular2-notifications.
Thank you!
On Apr 25, 2016, at 1:06 PM, Filip Lauc [email protected] wrote:
Hi,
I'm not really sure about what you are trying to achieve but this might be it:
CSS
.simple-notification-wrapper {
display: none;
}.active {
display: block;
}
HTML<simple-notifications [class.active]="isActive">
JSpublic isActive = false;
Then when you want it to have the display: block style just set the isActive variable to true somewhere in your code.—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #20 (comment)
from angular2-notifications.
Related Issues (20)
- Demo on StackBlitz has broken image (Jaspero logo)
- Keep notifications accessible after they are hidden
- Angular 11 version HOT 3
- NPM - Recent Release 12.0.0 HOT 5
- CHANGELOG outdated (no mention of version 3 and ulterior)
- README: Broken link to Creating Notifications anchor
- README: Creating Notifications section outdated
- incompatible peer dependency to @angular/... - requires "^9.0.0" HOT 3
- Error using version 12 in child HOT 1
- issue with lazy loaded module in angular 13 HOT 4
- Notifications closing improperly
- Migration angular 13 HOT 1
- Pause (progress) on hover not working as expected
- Migration angular 14 HOT 1
- No angular 11 release available HOT 1
- Please make a release HOT 3
- MatTooltip over angular2-notification
- Migration Angular 16 HOT 1
- Html notification HOT 1
- Support for Angular 17 HOT 4
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 angular2-notifications.