2012-03-08 12:27:02 +00:00
|
|
|
/**
|
|
|
|
* Creates an ve.ce.TableRowNode object.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @constructor
|
|
|
|
* @extends {ve.ce.BranchNode}
|
|
|
|
* @param {ve.dm.TableRowNode} model Table row model to view
|
|
|
|
*/
|
|
|
|
ve.ce.TableRowNode = function( model ) {
|
|
|
|
// Inheritance
|
2012-04-04 18:53:23 +00:00
|
|
|
ve.ce.BranchNode.call( this, model, $( '<tr></tr>' ), true );
|
2012-03-08 12:27:02 +00:00
|
|
|
|
|
|
|
// DOM Changes
|
|
|
|
this.$
|
|
|
|
.attr( 'style', model.getElementAttribute( 'html/style' ) )
|
2012-04-04 18:53:23 +00:00
|
|
|
.addClass( 've-ce-tableRowNode' );
|
2012-03-08 12:27:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ce.DocumentNode.splitRules.tableRow = {
|
|
|
|
'self': false,
|
|
|
|
'children': false
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
ve.extendClass( ve.ce.TableRowNode, ve.ce.BranchNode );
|