Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to drag if columns are generated by an ng-repeat #7

Open
sturoid opened this issue Nov 2, 2015 · 2 comments
Open

Unable to drag if columns are generated by an ng-repeat #7

sturoid opened this issue Nov 2, 2015 · 2 comments

Comments

@sturoid
Copy link

sturoid commented Nov 2, 2015

I can't seem to get draggable columns if the columns are generated by an ng-repeat. It works fine otherwise. Can you tell me if I'm doing something wrong here? Also, is it possible to do drag handles?

<table class="table table-bordered" draggable>
  <thead>
    <tr>
      <th ng-repeat="column in record.columns">{{column.name}}</th>
    </tr>
  </thead>

  <tbody>
    <tr ng-repeat="i in $times(record.rows)">
      <td ng-repeat="column in record.columns" ng-tap="translateOpen(column.rows, i)">{{column.rows[i]}}</td>
    </tr>
  </tbody>
</table>
@Parthvora
Copy link

Actually column dragging works when table content is generated with ng-repeat, but it does not work when table header get generated with ng-repeat. I'm also stuck at this point. Is there any way to solve this issue? Is there any option to rebind the dragging event or something like that?

@kahurangitama
Copy link

Hey friends! I stuck with the same issue, somebody found the answer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants