Skip to content

Instantly share code, notes, and snippets.

@JeroenVinke
Forked from gist-master/app.html
Created February 27, 2017 19:27
Show Gist options
  • Save JeroenVinke/699494d52b9e1883b01797eb20c0277b to your computer and use it in GitHub Desktop.
Save JeroenVinke/699494d52b9e1883b01797eb20c0277b to your computer and use it in GitHub Desktop.
ResponsivePanel: basic usage
<template>
<require from="aurelia-kendoui-bridge/responsivepanel/responsivepanel"></require>
<require from="./style.css"></require>
<div id="example">
<p>
Resize your window to see the effect of the responsive panel
</p>
<button click.delegate="call()">Call</button>
<div class="demo-section k-content">
<nav id="navigation-responsive" ak-responsivepanel="k-widget.bind: panel">
<a href="#">Home</a>
<a href="#">Products</a>
</nav>
<article>
<button class="k-rpanel-toggle"><span class="k-icon k-i-hbars"></span></button>
</article>
</div>
</div>
</template>
export class BasicUse {
call() {
this.panel.open();
}
}
<!doctype html>
<html>
<head>
<title>Aurelia KendoUI bridge</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2016.2.714/styles/kendo.common.min.css">
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2016.2.714/styles/kendo.rtl.min.css">
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2016.2.714/styles/kendo.default.min.css">
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2016.2.714/styles/kendo.mobile.all.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.4.0/bluebird.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chroma-js/1.2.1/chroma.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2016.2.714/js/jquery.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2016.2.714/js/jszip.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2016.2.714/js/kendo.all.min.js"></script>
</head>
<body aurelia-app="main">
<h1>Loading...</h1>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.6/system.js"></script>
<script src="https://rawgit.com/aurelia-ui-toolkits/aurelia-kendoui-bundles/1.0.0-beta.1.0.6/config2.js"></script>
<script>
System.import('aurelia-bootstrapper');
</script>
</body>
</html>
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin('aurelia-kendoui-bridge');
aurelia.start().then(a => a.setRoot());
}
.k-rpanel-expanded {
width: 299px;
height: 565px;
float: left;
z-index: 999;
background-color: white;
border-right: 1px solid #c5c5c5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment