oreesh-dialog Class
Dialog
// Can be created dynamically
var dialog = new OreeshDialog();
<!-- Or via HTML -->
<oreesh-dialog
title="Error: No Students!"
message="This class contains no students! You will have to add some students before you are able to continue"
yes-button-text="Yes!"
large-icon-src="http://oreesh.s3.amazonaws.com.edgesuite.net/latest/img/oreesh.png"
small-icon="error">
</oreesh-dialog>
Notes: icon-large-src has priority over icon-small. If there is not icon-large-src or icon-small, then it will be text only.
Item Index
Methods
Methods
close
()
Closes the dialog, removing it from the screen.
noButtonCallback
()
The callback function to be executed when No or X (close) button is pressed.
var od = document.createElement('oreesh-dialog');
od.noButtonCallback = function() {...};
open
()
Opens the dialog, making it appear on the screen.
yesButtonCallback
()
The callback function to be executed when Yes or Ok, (or X (close) button when mode="alert") button is pressed.
var od = document.createElement('oreesh-dialog');
od.yesButtonCallback = function() {...};
Attributes
mode
String
Dialog mode controls the amount of buttons. Use alert for a dialog with a single Ok button. Use confirmation for a dialog with a Yes and a No button.
Default: alert
opacity
String
Sets the opacity value. Options are low, high, or none. This is binded to the oreesh-overlay opacity attribute.
