Skip to content

Working problems #7

@valentindegrange

Description

@valentindegrange

Hello,

I'm trying to use the directive you have created but I'm facing some issue with understanding how it works.

Here is my export button (based on your readme) :
<button class="table-export" table-selector="'toto'" export-options="{type: 'pdf', escape: true, tableName: 'toto' }"> Export </button>

And this is the table I am looking to export :

    <table id="toto" class="table table-hover">
        <thead>
            <tr>
                <th>1</th>
                <th>2</th>
                <th>3</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="data in details.chartData">
                <td>{{details.datasource.name}}</td>
                <td>{{data.x}}</td>
                <td>{{data.y}}</td>
            </tr>
        </tbody>
    </table>

I thought I should use the id of my table in my table-selector but it doesn't seems to work.
Do you have any idea why ?

Thank you very much

Valentin

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