mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-14 18:15:19 +00:00
29 lines
577 B
JavaScript
29 lines
577 B
JavaScript
/**
|
|
* Creates an es.TableView object.
|
|
*
|
|
* @class
|
|
* @constructor
|
|
* @extends {es.DocumentViewBranchNode}
|
|
* @param {es.TableModel} model Table model to view
|
|
*/
|
|
es.TableView = function( model ) {
|
|
// Inheritance
|
|
es.DocumentViewBranchNode.call( this, model, $( '<table>' ) );
|
|
|
|
// DOM Changes
|
|
this.$
|
|
.attr( 'style', model.getElementAttribute( 'html/style' ) )
|
|
.addClass( 'es-tableView' );
|
|
};
|
|
|
|
/* Registration */
|
|
|
|
es.DocumentView.splitRules.table = {
|
|
'self': false,
|
|
'children': false
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
es.extendClass( es.TableView, es.DocumentViewBranchNode );
|