Skip to content

API / interfaces / sheet2htmlopts

Interface: Sheet2HTMLOpts

Options for converting a worksheet to an HTML table string

Properties

id

optional

id: string

HTML id attribute for the table element

editable

optional

editable: boolean

If true, add contenteditable attribute to cells

header

optional

header: string

HTML to prepend before the table

footer

optional

footer: string

HTML to append after the table

sanitizeLinks

optional

sanitizeLinks: boolean

If true, sanitize hyperlink targets to prevent XSS

Source

src/types.ts


← Sheet2CSVOpts | Sheet2JSONOpts →