HM-31. Добавлен роутинг для страниц (#9)
This commit is contained in:
@ -5,8 +5,8 @@ import TableColumnComponent from '../table-column-component/index';
|
||||
import TableRowComponent from '../table-row-component/TableRowComponent';
|
||||
|
||||
class TableComponent extends Component {
|
||||
constructor () {
|
||||
super('#main-table', document.body);
|
||||
constructor (parentNode) {
|
||||
super('#main-table', parentNode);
|
||||
|
||||
this.tableHead = this.mainNode.querySelector('.Table__head');
|
||||
this.tableBody = this.mainNode.querySelector('.Table__body');
|
||||
|
||||
Reference in New Issue
Block a user