or
<
ul
data-role
=
"actionsheet"
id
=
"inboxActions"
data-open
=
"onOpen"
data-popup
=
'{"direction": "left"}'
>
<
li
class
=
"km-actionsheet-title"
>Monday 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
>
<
ul
data-role
=
"actionsheet"
id
=
"inboxActions"
data-open
=
"onOpen"
data-popup
=
'{"direction": "left"}'
>
<
li
class
=
"km-actionsheet-title"
>Monday Meeting:</
li
>
<
li
><
a
href
=
"#"
data-action
=
"singleEventHandler"
>Reply</
a
></
li
>
<
li
><
a
href
=
"#"
data-action
=
"singleEventHandler"
>Reply All</
a
></
li
>
<
li
><
a
href
=
"#"
data-action
=
"singleEventHandler"
>Archive</
a
></
li
>
</
ul
>
function singleEventHandler(e) {
if (<
some
test involving e>) {
$("#actionResult").html("Replying to message #" + e.context);
} else if (<
some
other test involving e>) {
$("#actionResult").html("Replying to all in message #" + e.context);
} else if (<
some
other test involving e>) {
$("#actionResult").html("Archiving message #" + e.context);
}
doMoreStuff();
}