Skip to content

How to get the row data on row click event? #39

@hamxiaoz

Description

@hamxiaoz

From the demo (nestedTable), I find this line:

    tr = event.currentTarget.parentElement
    row = @self.$.api().row( tr )

Then I tried @self.$.api().row(tr).data() and it works.

So @self.$.api() in the event handler is returning the datatable's api? If so, can you add it to the readme?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions