Skip to content

Commit

Permalink
Fix HTMLTemplateFormatter on Tabulator (#2781)
Browse files Browse the repository at this point in the history
* Fix HTMLTemplateFormatter on Tabulator

* Fix whitespace

* Remove console.log

* More whitespace
  • Loading branch information
philippjfr authored Sep 24, 2021
1 parent 28896e3 commit d06f4c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions panel/models/tabulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ export class DataTabulatorView extends PanelHTMLBoxView {
else {
tab_column.formatter = (cell: any) => {
const formatted = column.formatter.doFormat(cell.getRow(), cell, cell.getValue(), null, null)
if (column.formatter.type === 'HTMLTemplateFormatter')
return formatted
const node = div()
node.innerHTML = formatted
return node.children[0].innerHTML
Expand Down

0 comments on commit d06f4c3

Please sign in to comment.