to catch all users attention i use
https://limonte.github.io/sweetalert2/
2017-01-06 16:05 GMT+00:00 LoveWeb2py :
> Hi Richard,
>
> I'm trying to use this: https://github.com/CodeSeven/toastr
>
> and it's working okay right now, but I feel like there has to be a better
> way.
>
> If I just use r
Hi Richard,
I'm trying to use this: https://github.com/CodeSeven/toastr
and it's working okay right now, but I feel like there has to be a better
way.
If I just use response.flash = 'message' and change the css I'd have to
change the javascript as well (I think) and I also wouldn't be able to
Why doing that? You can't just style differently the actual web2py flash
popup in the web2py.css file to achieve what you want? I mean flash message
is flash message...
Richard
On Fri, Jan 6, 2017 at 10:43 AM, LoveWeb2py wrote:
> Hello,
>
> I have created my own response.flash
>
> Here is the c
Hello,
I have created my own response.flash
Here is the code:
def notification(message, mtype):
a = "\n"
a += "$(\"notify\").ready(function() {\n"
a += "toastr.options.timeOut = 2000; // 1.5s\n"
a += "toastr.{mtype}('{message}');\n".format(mtype=mtype, message=message)
a +=
4 matches
Mail list logo