Created
May 24, 2012 01:36
-
-
Save jbristowe/2778953 to your computer and use it in GitHub Desktop.
ActionSheet in Kendo UI Mobile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.km-ios .km-button.delete{ | |
background-color: red; | |
color: white; | |
text-shadow: 0 -1px 1px rgba(0, 0, 0, .5); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function reply(e) { | |
console.log("Replying to message ID: " + e.context); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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