Last active
July 19, 2016 18:49
-
-
Save adriatic/2ab29032a20109537c51136c1995210b to your computer and use it in GitHub Desktop.
Button: basic use
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
<template> | |
<require from="./basic-use.css"></require> | |
<div id="example" class="btn-basic-use"> | |
<div class="demo-section k-content"> | |
<div> | |
<h4>Basic Button</h4> | |
<p> | |
<button ak-button class="k-primary">Primary Button</button> | |
<button ak-button>Button</button> | |
</p> | |
</div> | |
<div> | |
<h4>Disabled buttons</h4> | |
<p> | |
<a ak-button="k-enable.bind: false" class="k-primary">Disabled Primary Button</a> | |
<a ak-button="k-enable.bind: false">Disabled Button</a> | |
</p> | |
</div> | |
<div> | |
<h4>Buttons with icons</h4> | |
<p> | |
<a ak-button="k-sprite-css-class: k-icon k-i-funnel">Filter</a> | |
<a ak-button="k-icon: funnel-clear">Clear Filter</a> | |
<em ak-button="k-sprite-css-class: k-icon k-i-refresh"></em> | |
</p> | |
</div> | |
</div> | |
</div> | |
</template> |
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
export class BasicUse {} |
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
.btn-basic-use .demo-section p { | |
margin: 0 0 30px; | |
line-height: 50px; | |
} | |
.btn-basic-use .demo-section p .k-button { | |
margin: 0 10px 0 0; | |
} | |
.btn-basic-use .k-primary { | |
min-width: 150px; | |
} |
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
<!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.1.226/styles/kendo.common.min.css"> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2016.1.226/styles/kendo.rtl.min.css"> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2016.1.226/styles/kendo.default.min.css"> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2016.1.226/styles/kendo.mobile.all.min.css"> | |
<script src="https://kendo.cdn.telerik.com/2016.1.226/js/jszip.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/0.3.5/config2.js"></script> | |
<script> | |
System.import('aurelia-bootstrapper'); | |
</script> | |
</body> | |
</html> |
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
export function configure(aurelia) { | |
aurelia.use | |
.standardConfiguration() | |
.developmentLogging() | |
.plugin('aurelia-kendoui-bridge', kendo => kendo.pro()); | |
aurelia.start().then(a => a.setRoot()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment