MatDialog.js is a JavaScript library for MatereializeCss which provides you functionalities to create dialog boxes without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers.
Take a look at code for showing alert:
var MyDialog=new MatDialog();
MyDialog.alert( 'Hey I am Alert');