Skip to content

Instantly share code, notes, and snippets.

@gregoryagu
Last active October 22, 2018 09:36
Show Gist options
  • Save gregoryagu/bbb843588adb35cfe5776b5a73f1125c to your computer and use it in GitHub Desktop.
Save gregoryagu/bbb843588adb35cfe5776b5a73f1125c to your computer and use it in GitHub Desktop.
Drag and Drop Grid
<template>
<table>
<tr>
<td>
<input type="radio" name="medium" ej-radio-button="e-checked:true;e-value:1;e-on-click.trigger='onRadioChange(1)'" id="Radio1" /><label for="Radio1" >Assigned To Me</label></td>
<td>
<input type="radio" name="medium" ej-radio-button="e-value:2;e-on-click.trigger='onRadioChange(2)'" id="Radio2" /><label for="Radio2">Owned By Me</label></td>
<td>
<input type="radio" name="medium" ej-radio-button="e-value:3;e-on-click.trigger='onRadioChange(3)'" id="Radio3" /><label for="Radio3">Everything</label></td>
</tr>
</table>
</template>
export class DefaultSample {
onRadioChange(value) {
console.log("Check changed with a value of: " + value);
}
}
ej-tree-grid {
display: block;
}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Essential Studio for JavaScript">
<meta name="author" content="Syncfusion">
<title>Untitled</title>
<!-- Essential Studio for JavaScript theme reference -->
<link rel="stylesheet" href="https://cdn.syncfusion.com/14.2.0.28/js/web/flat-azure/ej.web.all.min.css" />
</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-syncfusion-bundles/0.0.1/config2.js"></script>
<script>
System.import('aurelia-bootstrapper');
</script>
</body>
</html>
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin('aurelia-syncfusion-bridge', syncfusion => syncfusion.useAll());
aurelia.start().then(a => a.setRoot());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment