diff --git a/paper-datatable-column.html b/paper-datatable-column.html index 656c694..3e9ab41 100644 --- a/paper-datatable-column.html +++ b/paper-datatable-column.html @@ -117,7 +117,10 @@ * @type Boolean * @default false */ - editable: Boolean, + editable: { + type: Boolean, + observer: '_initTemplate' + }, /** * If `type` is an `Array` and the array consists of `Object`s it's a common need * to display a single property of every object (in non-editable mode). @@ -285,6 +288,14 @@ }, + _initTemplate: function(){ + if( this.editable ){ + this.ready(); + } else { + this.template = false; + } + }, + _createCellInstance: function(model, notificationKey){ if(typeof model[this.property] == 'undefined' && typeof this.default !== 'undefined'){ var instance = this.stamp({item: model, column:this, value: this.default, _dataKey: notificationKey});