Files
2022-11-04 13:24:24 +02:00

76 lines
2.1 KiB
HTML
Executable File

<!DOCTYPE html>
<html>
<head>
<title>Keyboard Navigation</title>
<meta charset="utf-8">
<link href="../content/shared/styles/examples-offline.css" rel="stylesheet">
<link href="../../styles/kendo.common.min.css" rel="stylesheet">
<link href="../../styles/kendo.rtl.min.css" rel="stylesheet">
<link href="../../styles/kendo.default.min.css" rel="stylesheet">
<link href="../../styles/kendo.default.mobile.min.css" rel="stylesheet">
<script src="../../js/jquery.min.js"></script>
<script src="../../js/jszip.min.js"></script>
<script src="../../js/kendo.all.min.js"></script>
<script src="../content/shared/js/console.js"></script>
<script>
</script>
</head>
<body>
<a class="offline-button" href="../index.html">Back</a>
<div class="demo-section k-content" style="height:300px">
<button id="fab"></button>
</div>
<script>
$(document).ready(function () {
$("#fab").kendoFloatingActionButton({
icon: "share",
positionMode: "absolute",
align: "bottom center",
alignOffset: {
x: 50,
y: 50
},
themeColor: "info",
size: "large",
shape: "pill",
items: [{
label: "Download",
icon: "download",
click: function () {
kendo.alert("download action");
}
}, {
label: "Print",
icon: "print",
click: function () {
kendo.alert("print action");
},
}, {
label: "Email",
icon: "email",
click: function () {
kendo.alert("email action");
}
}],
});
});
$(document).keydown(function (e) {
if (e.altKey && e.keyCode === 87) {
$("#fab").data("kendoFloatingActionButton").wrapper.focus();
}
});
</script>
</body>
</html>