question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamic data-title with ng-repeat

See original GitHub issue

I would like to assign the title dynamically on creation of the html element. It seem the title parser work before the assignment. If i inspect the elements in chrome the title is set but the thead element is missing.

<table ng-table="tableParams" show-filter="true" class="table table-striped">
    <tr ng-repeat="item in items">
        <td data-title="{{key}}" ng-repeat="(key, value) in item">
            {{value}}
        </td>
    </tr>
</table>

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:12

github_iconTop GitHub Comments

4reactions
Garfield-Lewiscommented, Oct 24, 2014

Are there any plans to actually fix this to accept dynamic inputs for the data-title? I tried using a function and it looked promising but for some odd reason the function will not accept any dynamic inputs either it only takes hard coded values. The fix proposed above doesn’t seem to be a very good one IMHO.

Garfield

0reactions
CrisGarciscommented, Apr 12, 2019

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamic table creation with ng-repeat in angularjs
You can do this by using an ng-repeat inside another. And also, use the first line to render the headers. Note on ngRepeat...
Read more >
calling function in ng-repeat to form dynamic data table
I'm new to Angular, I agreed that ng-repeat every time call the function, But my concern is if I prebuild the table and...
Read more >
Solved: ng-repeat dynamic td including stripped rows/blank...
Solved: Hello, I need help on how to include stripped rows/cells if there are no data. I created this exmaple widget and this...
Read more >
how can i bind my dynamically data to data table
i am generating a table by using ng-repeat in angularjs , i have bind a table to table by calling a web api...
Read more >
datatable with dynamic columns
... <h1>Dynamic columns in a angularJS datatable</h1> <table class="table table-condensed table-bordered"> <thead> <tr> <th ng-repeat="column in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found