class ReportTableViewCell extends OptionsTableViewCell { build(element) { element = super.build(element); this.visibilityIcon = document.createElement("img"); this.visibilityIcon.className = "visibility-icon colored-icon-text require__multiuser"; this.visibilityIcon.src = TimeCards.getResourceUri("Images/Public.webp"); this.visibilityIcon.title = "Visible to: everyone"; element.insertBefore(this.visibilityIcon, element.firstChild); return element; } setData(data) { super.setData(data); if (data.report) { this.report = data.report; this.visibilityIcon.style.display = data.report.visibility == 1 ? "" : "none"; } } } UIKit.registerViewType(ReportTableViewCell);