HM-29 фильтр таблицы апи (#24)
* HM-29 Сделал фильтр по макету + добавил кнопку создания апишки, добавлен так же интерфейс создания апи, но он нуждается в редактировании и будет улучшен в отдельной ветке
This commit is contained in:
@ -11,7 +11,13 @@ class TableRowComponent extends Component {
|
||||
|
||||
this.content.forEach((text) => {
|
||||
const contentPlace = document.createElement('td');
|
||||
contentPlace.textContent = typeof(text) !== 'string' ? typeof(text) : text;
|
||||
if (typeof(text) !== 'string') {
|
||||
contentPlace.textContent = typeof(text);
|
||||
} else if (text.length > 30) {
|
||||
contentPlace.textContent = `${text.substr(0, 30)} ...`;
|
||||
} else {
|
||||
contentPlace.textContent = text;
|
||||
}
|
||||
this.row.appendChild(contentPlace);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user