Answer the question
In order to leave comments, you need to log in
Is there similar high-level functionality in Angular or other web frameworks?
Often, in one project, HTML tables that are identical in structure and functionality, but different in data, can be used. And you have to copy the HTML code of the tables from one project component to another. If there are a lot of such tables in the project, you have to copy the same code a lot and remake it for other input data. But if these tables also have some functionality under them, for example: column filtering, paging, dynamic row movement, then this functionality has to be copied from one component to another. But even if you can make a common functional method here, you still have to copy, not to other components of this project, but to other projects.
Is there a higher level solution in Angular2 or other web frameworks? In order not to copy-paste the same code across projects, but to introduce something like this function:
showHTMLTable([], [], {}) // передать массив значений таблицы, массив наименований столбцов и параметры таблицы (пример: нужна ли фильтрация столбцов, если да, то какая и т.п.)
<angularTable tableData="[]", tableHeader="['column1', 'column2', 'column3']"></angularTable> // один тег заменил бы теги <table>, <tr>, <td>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question