Giter Site home page Giter Site logo

Comments (5)

P4R4DiSi4C avatar P4R4DiSi4C commented on September 2, 2024 1

Actually I'm using your LBD Vue.js Theme. I was able to achieve it with this:
<div class="text-center alert alert-danger" v-if='error.length > 0'> <button type="button" class="close" v-on:click='error = ""'>×</button> <span>{{ error }}</span> </div>

I just wanted to show this alert if my variable "error" isn't empty. You should add it as a component to LBD :)

Thank you for your help !

from vue-notifyjs.

cristijora avatar cristijora commented on September 2, 2024

Hi @P4R4DiSi4C

That page contains static html for the fixed notifications and therefore they won't close. It's just to show how the notifications look like.

from vue-notifyjs.

P4R4DiSi4C avatar P4R4DiSi4C commented on September 2, 2024

Hi @cristijora ,
Thanks for your answer
So how could I achieve bootstrap 4 alert behaviour ?
Alerts Bootstrap 4

In the "Dismissing" section:
`


Holy guacamole! You should check in on some of those fields below.

×

`

I don't want to use it in a Notification bubble, just show a div with that alert if an error occured and the guy can close it or wait for autoclose.

Best regards

from vue-notifyjs.

cristijora avatar cristijora commented on September 2, 2024

That should be fairly simple to do with plain html and a bit of Vue.

Here you go. You can build a very simple component for that
https://codesandbox.io/s/xjp467m1z

from vue-notifyjs.

cristijora avatar cristijora commented on September 2, 2024

Glad I could help. Added an issue to the dashboard as well and will address it in the next update
https://github.com/creativetimofficial/vue-light-bootstrap-dashboard-pro/issues/13

Thanks for the feedback

from vue-notifyjs.

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.