Create a modal window with a build template inside. See available build templates here.
The modal window is closed at the beginning. Use the function open
to open it.
How to create this component:
sdk.buildModal(templateName:String, options:Object, headerText:String);
This is the HTML component. For example the "#inbenta" target is:
<div id="inbenta"></div>
Available options of the component, that we will print inside.
This is the modal window's header text. By default, there is no text.
You can use methods in this component:
Name | Description |
---|---|
open() |
Open the modal window. |
close() |
Close the modal window. |
Open a modal window with popular content inside.
<button onclick="openModal()">Open modal window default template</button>
<script type="text/javascript">
var modal = sdk.buildModal('default',{},'Build');
function openModal(){
modal.open();
}
</script>