saideepak
6 years agoContributor
Modal dialogue auto popup
How to do the auto pop up of modal dialogue in Lithium without click? Atleast by using Javascript to launch the modal dialogue, how to know the modal dialogue hypertext link?
You can use this example code for modal dialog box.
<#assign componentParameters = modalsupport.component.parameters.add("listSize", 10).build />
<#assign modalOptions = modalsupport.options.setButtonType("secondary")
.setTitle("Top Threads with No Reply").setSmall(false).setResizable(true)
.setWidth(480).setMaxHeight(600).build />
<@modal id="top_threads_no_replies" label="custom.top_threads_no_replies.modal" parameters=componentParameters options=modalOptions />
Here is the documentation for how to create modal dialogs in community.