Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.
/ dart-message Public archive

Port of jsMessage library. Nice looking notifications, alerts and confirmations.

License

Notifications You must be signed in to change notification settings

mkozhukh/dart-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DartMessage

Port of JsMessage library ( http://dhtmlx.github.io/message/ )

Nice looking notifications, alerts and confirmations

How to use

Notifications

message.info("This is test Info message");
message.error("This is test Error message");
message.warning("This is test Warning message");

You can define message expiration time like next

message.info("Will expire in 8 seconds", expire: 8);

Alert

	message.alert("Test alert");

Alert does not block code execution, if you need to catch the alert closing, you can use code like next

	message.alert("Test alert").then(
		(result) => some_code()
	);

Confirm

	message.confirm("Are you sure");

Confirm does not block code execution, To get the confirm result you can use code like next

	message.confirm("Are you sure").then(
		(result) => some_code()
	);

where result will be an "ok" or "cancel" string

Modal Box

When you want to have a custom set of buttons - you can use modal box

  message.modalbox("Custom box", width:"500px", buttons:{ 
    "ok" : "Do It",
    "unsure" : "Not sure",
    "cancel" : "Ignore"
  }).then((result) => message.alert(result));

License

Available under MIT license terms

About

Port of jsMessage library. Nice looking notifications, alerts and confirmations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published