Alert (Simple actions)
Displays a message in a modal dialog.
Defined in
Extension LibraryType of simple action
Basic (Client)Syntax
<xe:alertAction text="message" loaded="true|false"</xe:alertAction>
Attribute | Description |
---|---|
loaded="true|false" |
Creates a tag instance when the control is loaded,
or not. Defaults to true . |
text="text" |
Text of the alert message. |
Examples
Here a button issues an alert then
causes text to slide to a position 100 pixels from the left and 100
pixels from the top.
<xp:div id="div1"
style="font-size:16pt;font-weight:bold;text-align:center">
Testing testing testing
</xp:div>
<xp:button value="Slide To" id="button3">
<xp:eventHandler event="onclick" submit="false">
<xp:this.script>
<xp:scriptGroup>
<xe:alertAction text="Sliding text to position 100, 100"></xe:alertAction>
<xe:dojofxSlideTo node="div1" duration="1500" left="100" top="100"></xe:dojofxSlideTo>
</xp:scriptGroup>
</xp:this.script>
</xp:eventHandler>
</xp:button>