A Pen by Dino Fancellu on CodePen.
Created
April 2, 2019 13:06
-
-
Save fancellu/611d3fac32b4a4e8081fe8c6ddb4abc7 to your computer and use it in GitHub Desktop.
wZaPbE
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
<html> | |
<head> | |
<!-- Do you need Material Icons? --> | |
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons" rel="stylesheet" type="text/css"> | |
<link href="https://cdn.jsdelivr.net/npm/quasar/dist/quasar.min.css" rel="stylesheet" type="text/css"> | |
</head> | |
<body> | |
<script src="https://cdn.jsdelivr.net/npm/quasar@@^1.0.0-beta.14/dist/quasar.ie.polyfills.umd.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vue"></script> | |
<script src="https://cdn.jsdelivr.net/npm/quasar/dist/quasar.umd.min.js"></script> | |
<div id="q-app"> | |
<q-table | |
:data="auditdata" | |
:columns="auditcolumns" | |
row-key="id"></q-table> | |
</div> | |
<script type="text/javascript"> | |
var myvue=new Vue({ | |
el: '#q-app', | |
data: function () { | |
return { | |
auditcolumns :[ | |
{ | |
name: 'id', | |
label: 'id', | |
field: 'id' | |
}, | |
{ | |
name: 'created', | |
label: 'created', | |
field: 'created' | |
} | |
], | |
auditdata :[ | |
{ | |
id: 'myid', | |
created: 'somedate' | |
} | |
] | |
} | |
} | |
}) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment