kendo.mobile.ui.ActionSheet
Edit this docRepresents the Kendo UI Mobile ActionSheet widget. Inherits from kendo.mobile.ui.Widget.
No results. Try clearing the filter.
The text of the cancel button.
The popup configuration options (tablet only).
The direction to which the popup will expand, relative to the target that opened it.
The height of the popup in pixels.
The width of the popup in pixels.
Prepares the ActionSheet for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
Important: This method does not remove the ActionSheet element from DOM.
Example
var actionSheet = $("#actionSheet").data("kendoMobileActionSheet");
// detach events
actionSheet.destroy();
Open the ActionSheet.
Example
<ul data-role="listview">
<li> Foo <a data-role="button" id="button">Delete</a></li>
</ul>
<ul data-role="actionsheet" id="actionsheet">
<li><a data-action="foo">Foo</a></li>
<li><a data-action="bar">Bar</a></li>
</ul>
<script>
$("#actionsheet").data("kendoMobileActionSheet").open($("#button"));
</script>
Parameters
- target
jQuery (optional) The target element of the ActionSheet, available in the callback methods.
Notice The target element is mandatory on tablets, as the ActionSheet widget positions itself relative to opening element when a tablet is detected.
- context
Object (optional) The context of the ActionSheet, available in the callback methods.
Fires when the ActionSheet is opened.
Event Data
- e.target
jQuery The invocation target of the ActionSheet.
- e.context
jQuery The defined ActionSheet context.