mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 10:00:05 -04:00
Update htmlTable.ts
This commit is contained in:
parent
def47211f3
commit
94fe2292a9
1 changed files with 6 additions and 6 deletions
|
@ -16,15 +16,15 @@ export class HTMLTable {
|
||||||
}
|
}
|
||||||
|
|
||||||
toString() {
|
toString() {
|
||||||
let output = '<table>\n'
|
let output = '<table>\r\n'
|
||||||
|
|
||||||
output += ' <thead>\n <tr>'
|
output += ' <thead>\r\n <tr>'
|
||||||
for (const column of this.columns) {
|
for (const column of this.columns) {
|
||||||
output += `<th align="left">${column.name}</th>`
|
output += `<th align="left">${column.name}</th>`
|
||||||
}
|
}
|
||||||
output += '</tr>\n </thead>\n'
|
output += '</tr>\r\n </thead>\r\n'
|
||||||
|
|
||||||
output += ' <tbody>\n'
|
output += ' <tbody>\r\n'
|
||||||
for (const item of this.data) {
|
for (const item of this.data) {
|
||||||
output += ' <tr>'
|
output += ' <tr>'
|
||||||
let i = 0
|
let i = 0
|
||||||
|
@ -35,9 +35,9 @@ export class HTMLTable {
|
||||||
output += `<td${align}${nowrap}>${item[prop]}</td>`
|
output += `<td${align}${nowrap}>${item[prop]}</td>`
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
output += '</tr>\n'
|
output += '</tr>\r\n'
|
||||||
}
|
}
|
||||||
output += ' </tbody>\n'
|
output += ' </tbody>\r\n'
|
||||||
|
|
||||||
output += '</table>'
|
output += '</table>'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue