modal-box-message
v2.1.5
Published
A modal box for display a message with customizable style
Downloads
28
Maintainers
Readme
Modal Box Message
Simply a Modal Box that display a message with customizable style [BUGFIX RESOLVED (css don't load)]
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)//currentCssFile ="../node_modules/Modal-Box-Input/dist/[filename]";
public setCssFilePath(filepath:string)//currentCssFile = "../[filepath]/ModalBoxInput.css";
public setCssBasePath(filebase:string)//currentCssFile = "[filebase]node_modules/Modal-Box-Input/dist/ModalBoxInput.css";
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)//currentCssFile = [filepath];
Documentation
Built With
Typescript
Browserify
Gulp
Stylus
Author
License
This project is licensed under the MIT License