Modal Box Message
Simply a Modal Box that display a message with customizable style
Getting Started
npm install modal-box-message --save
Simple Use
get boxclass from module
var alertClass = require("./ModalBoxMessage.js").ModalBoxMessage;
var alert = new alertClass("Error", "anonymous function thrown an error!");
alert.Open();
Styling
for styling Box class automatically insert a tag
<link rel="stylesheet" href="../node_modules/Modal-Box-Input/dist/ModalBoxInput.css">
if your path is different you can use
currentCssFile = "../node_modules/Modal-Box-Input/dist/ModalBoxInput.css";
public setCssFileName(filename:string)
public setCssFilePath(filepath:string)
public setCssBasePath(filebase:string)
to set a different location for css stylesheet
or copy ModalBoxInput.css in your index folder and set css file so:
public setCssFile(filepath:string)
Documentation
Documentation Here
Built With
Typescript
Browserify
Gulp
Stylus
Author
Luigi Senzamici
License
This project is licensed under the MIT License