Skip to content

Instantly share code, notes, and snippets.

@jbristowe
Created May 24, 2012 01:36
Show Gist options
  • Save jbristowe/2778953 to your computer and use it in GitHub Desktop.
Save jbristowe/2778953 to your computer and use it in GitHub Desktop.
ActionSheet in Kendo UI Mobile
<ul id="actions" data-role="actionsheet">
<li class="km-actionsheet-title">Monday's meeting</li>
<li><a href="#" data-action="reply>Reply</a></li>
<li><a href="#" data-action="replyAll>Reply All</a></li>
<li><a href="#" data-action="archive>Archive</a></li>
</ul>
<div data-role="view">
<ul data-role="listview" data-source="inbox" data-template="inboxItem"></ul>
<ul id="actions" data-role="actionsheet">
<li class="km-actionsheet-title">Monday's meeting</li>
<li><a href="#" data-action="reply>Reply</a></li>
<li><a href="#" data-action="replyAll>Reply All</a></li>
<li><a href="#" data-action="archive>Archive</a></li>
</ul>
</div>
.km-ios .km-button.delete{
background-color: red;
color: white;
text-shadow: 0 -1px 1px rgba(0, 0, 0, .5);
}
<script type="text/x-kendo-template" id="tmplThingItem">
<a class="km-listview-link"
data-role="listview-link"
data-rel="actionsheet"
href="\\#thingActions"
data-actionsheet-context="#:data.id#">
<div class="thingTitle">#= data.description #</div>
</a>
</script>
function reply(e) {
console.log("Replying to message ID: " + e.context);
}
<ul data-role="actionsheet" id="thingActions">
<li class="km-actionsheet-title">Status:</li>
<li><a href="#" data-action="deleteThing" class="km-button delete">Delete</a></li>
<li><a href="#" data-action="markCompleted">Mark Complete</a></li>
<li><a href="#" data-action="markDelayed">Mark Delayed</a></li>
<li><a href="#" data-action="markInProgress">Mark In-Progress</a></li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment