node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

modal-box-message

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();

Here Example

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

Documentation Here

Built With

Typescript

Browserify

Gulp

Stylus

Author

Luigi Senzamici

License

This project is licensed under the MIT License