Skip to content

Any way to save element attributes that are assigned via element.someAttribute = "some value"? #95

Closed
@dkwin

Description

@dkwin

Hi

I'm currently evaluating the plugin for a fairly large table.

Currently, I'm initializing the table as such (via existing html):

window.clusterize = new Clusterize({
        scrollId: 'scrollDiv',
        contentElem: document.getElementById ("myTableTbody"),
        rows_in_block: VISIBLE_ROWS_IN_TABLE,
        blocks_in_cluster:BLOCKS_PER_CLUSTER
        }
)

My table is initialized by html and some initial JS as well (some of which I cannot change). The JS also sets some attributes which are used to render the table.

IE

document.getElementById ("someElement").someAttribute = "some important value needed to render";

I'm wondering how to best persist the JS attributes when the elements are destroyed.

thanks for any info

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions