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

29 lines
602 B
JavaScript
Raw Normal View History

/**
* Creates an es.TableRowView object.
*
* @class
* @constructor
* @extends {es.DocumentViewBranchNode}
* @param {es.TableRowModel} model Table row model to view
*/
es.TableRowView = function( model ) {
// Inheritance
es.DocumentViewBranchNode.call( this, model, $( '<tr>' ), true );
// DOM Changes
this.$
.attr( 'style', model.getElementAttribute( 'html/style' ) )
.addClass( 'es-tableRowView' );
};
2011-11-14 23:59:36 +00:00
/* Registration */
es.DocumentView.splitRules.tableRow = {
2011-11-14 23:59:36 +00:00
'self': false,
'children': false
};
/* Inheritance */
es.extendClass( es.TableRowView, es.DocumentViewBranchNode );