Apkawa/xlsx2html

Add id to <table>

obains opened this issue · 0 comments

It would be helpful for some applications to be able to define an id in the

element.

This would most likely go under core.py inserted into the render_table function under the html variable.

html = [
        '<table  '
        'style="border-collapse: collapse" '
        'border="0" '
        'cellspacing="0" '
        'cellpadding="0">'
        '<colgroup>'
    ]

Even a simple set value of id="myTable" would be helpful so that it can be referenced.

html = [
        '<table  '
        'style="border-collapse: collapse" '
        'id="myTable" '
        'border="0" '
        'cellspacing="0" '
        'cellpadding="0">'
        '<colgroup>'
    ]