TEMPLATE FEATURES

 

 

Notify

Create toggleable notifications that fade out automatically.

The notification will not fade out but remain visible when you hover the message until you stop hovering. You can also close the notification by clicking it.


Usage

Notify provides a simple API which you can reuse in your application code. The following JavaScript code snippet gets you started.

JavaScript

UIkit.notify({
    message : 'Bazinga!',
    status  : 'info',
    timeout : 5000,
    pos     : 'top-center'
});


// Shortcuts
UIkit.notify('My message');
UIkit.notify('My message', status);
UIkit.notify('My message', { /* options */ });

Example

UIkit.notify("Message...");

HTML message

You can use HTML inside your notification message, like an icon from the Icon component.

Example

UIkit.notify("<i class='uk-icon-check'></i> Message with an icon...");

Delay and sticky

You can define via timeout for what amount of time in milliseconds a message is visible. You can also create a sticky message by setting the timeout to zero.

Example

UIkit.notify("Message...", {timeout: 0});

Positions

Add one of the following parameters to adjust the notification's position to different corners.

Parameter Code Example
top-center
UIkit.notify("...", {pos:'top-center'})
top-left
UIkit.notify("...", {pos:'top-left'})
top-right
UIkit.notify("...", {pos:'top-right'})
bottom-center
UIkit.notify("...", {pos:'bottom-center'})
bottom-left
UIkit.notify("...", {pos:'bottom-left'})
bottom-right
UIkit.notify("...", {pos:'bottom-right'})

Status

A notification can be styled by adding a status to the message to indicate an info, success, warning or a danger status.

Status Code Example
info
UIkit.notify("...", {status:'info'})
success
UIkit.notify("...", {status:'success'})
warning
UIkit.notify("...", {status:'warning'})
danger
UIkit.notify("...", {status:'danger'})

About Us

Curabitur sollicitudin neque ante, commodo efficitur libero semper et. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam at suscipit mi. Maecenas et elit sem. Suspendisse a laoreet sem. Integer facilisis, magna at volutpat volutpat

Business Hours

Our support Hotline is available 24 Hours a day: (+61) 023 456 7805

Monday-Friday: 9am to 5pm
Saturday: 10am to 2pm
Sunday: Closed from 10am
Public Holidays: Closed all day

client1.jpgclient2.jpgclient3.jpgclient4.jpgclient5.jpgclient6.jpgclient7.jpgclient8.jpgclient9.jpg