-
Notifications
You must be signed in to change notification settings - Fork 0
/
jviz-table-column.html
31 lines (26 loc) · 1.13 KB
/
jviz-table-column.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!--
@license
Copyright (c) 2016 The Jviz Project Authors. All rights reserved.
The Jviz Project is under the MIT License. See https://github.com/jviz/jviz/blob/dev/LICENSE
-->
<!-- Import dependencies -->
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../jviz/jviz.html">
<!-- Table column -->
<dom-module id="jviz-table-column">
<template></template>
</dom-module>
<!-- Column logic -->
<script>
//Initialize the table column object
var jviz_table_column = { is: 'jviz-table-column' };
//Table column properties
jviz_table_column.properties = {};
jviz_table_column.properties.key = { type: String, reflectToAttribute: true, value: '' };
jviz_table_column.properties.header = { type: String, reflectToAttribute: true, value: 'Untitled' };
jviz_table_column.properties.visible = { type: Boolean, reflectToAttribute: true, value: false };
jviz_table_column.properties.parse = { type: String, reflectToAttribute: true, value: '' };
jviz_table_column.properties.sortable = { type: Boolean, reflectToAttribute: true, value: false };
//Register the table column
Polymer(jviz_table_column);
</script>