HM-29 фильтр таблицы апи (#24)

* HM-29 Сделал фильтр по макету + добавил кнопку создания апишки, добавлен так же интерфейс создания апи, но он нуждается в редактировании и будет улучшен в отдельной ветке
This commit is contained in:
mrPadre
2020-07-21 22:32:04 +03:00
committed by GitHub
parent 1815fb62d9
commit 19a29e5b1c
14 changed files with 245 additions and 11 deletions

View File

@ -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);
});