mediawiki-extensions-Visual.../modules/es/views/es.TableCellView.js

29 lines
601 B
JavaScript
Raw Normal View History

/**
* Creates an es.TableCellView object.
*
* @class
* @constructor
* @extends {es.DocumentViewBranchNode}
* @param {es.TableCellModel} model Table cell model to view
*/
es.TableCellView = function( model ) {
// Inheritance
es.DocumentViewBranchNode.call( this, model, $( '<td>' ) );
// DOM Changes
this.$
.attr( 'style', model.getElementAttribute( 'html/style' ) )
.addClass( 'es-tableCellView' );
};
2011-11-14 23:59:36 +00:00
/* Registration */
es.DocumentModel.nodeRules.tableCell = {
'self': false,
'children': true
};
/* Inheritance */
es.extendClass( es.TableCellView, es.DocumentViewBranchNode );