hs.onDimmerClick
Fires when the user clicks the dimmed background.
boolean hs.Expander.prototype.onDimmerClick ()
Returning false prevents the default close action, making the open expander behave like a modal window. Use this event when you want another action to happen on image click.
Details
Requires |
events, transitions |
Type |
event |
Returns |
boolean |
Example
Preventing close on click
In this example we apply a white background with an opacity of 0.75.
Put this in the head section of your page
<script type="text/javascript">
hs.onDimmerClick = function() {
return false;
}
</script>
The effect:
See also