GithubHelp home page GithubHelp logo

options about angular2-notifications HOT 8 CLOSED

flauc avatar flauc commented on June 2, 2024
options

from angular2-notifications.

Comments (8)

flauc avatar flauc commented on June 2, 2024

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.

chrismcgregor avatar chrismcgregor commented on June 2, 2024

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.

flauc avatar flauc commented on June 2, 2024

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.

chrismcgregor avatar chrismcgregor commented on June 2, 2024

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.

flauc avatar flauc commented on June 2, 2024

It's no problem 👍

from angular2-notifications.

chrismcgregor avatar chrismcgregor commented on June 2, 2024

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:

Closed #20 #20.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #20 (comment)

from angular2-notifications.

flauc avatar flauc commented on June 2, 2024

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.

chrismcgregor avatar chrismcgregor commented on June 2, 2024

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">
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.


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)

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.