Create a modal window with a component inside. See available components here.
The modal window is closed at the beginning. Use the open
function to open it.
How to create this component:
sdk.componentModal(componentName: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 popular modal window</button>
<script type="text/javascript">
var modal = sdk.componentModal('popular',{},'POPULARS');
function openModal(){
modal.open();
}
</script>