oxabs-tables
Version:
OA tables in elm!
54 lines (46 loc) • 1.89 kB
HTML
<!-- <link rel="stylesheet" href="style.css" /> -->
<link rel="stylesheet" href="app.css" />
<body>
<div id="app-root"></div>
<script src="elm.js"></script>
<script>
var node = document.getElementById("app-root");
// var app = Elm.Main.embed(node, {
// version: "arrayBased",
// initialGetUrl: "http://localhost:9000/stages/1/submissions/api",
// postRowsUrl: "http://localhost:9000/events/1/admin-notes",
// rowLink: "/stages/1/submissions/{rowId}",
// postVisibleColumnsUrl:"",
// rowsAreSelectable: true
// });
// var app = Elm.Main.embed(node, {
// version: "arrayBased",
// initialGetUrl: "http://localhost:9000/stages/1/submissions/assign/all/api",
// postRowsUrl: ""
// });
var app = Elm.Main.embed(node, {
version: "decisions",
initialGetUrl: "http://localhost:8000/stages/1/submissions/decide/api/admin",
postRowsUrl: "http://localhost:8000/stages/1/submissions/decide/api",
rowLink: "/stages/1/submissions/{rowId}",
postVisibleColumnsUrl:"",
rowsAreSelectable: true,
currentPage: 2
});
// var app = Elm.Main.embed(node, {
// version: 'arrayBased',
// initialGetUrl: 'http://localhost:9000/stages/1/submissions/review/api',
// postRowsUrl: 'http://localhost:9000/stages/1/submissions/review/'
// });
// app.ports.sendRows.subscribe(function(rows){
// console.log('rows', rows)
// })
// tableHandle.ports.initTinyMce.subscribe(function(){
// initTinyMce(tinymce, false);
// });
app.ports.sendDecisionsRows.subscribe(function(rows) {
console.log('rows', rows)
})
</script>
</body>