Git Product home page Git Product logo

dart-message's Introduction

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

dart-message's People

Contributors

mkozhukh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

adam-singer

dart-message's Issues

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.