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.

Feature request: Support more than column_number, like columnDefs.targets

See original GitHub issue

Just like columnDefs.targets it would be nice to support a class name.

I have a set of default <th> columns across a few of my tables, some define them in different orders. Because of this, I use the string target type so my defs are matched up to the column name and everything just works.

Being forced to provide a 0-based index to column_number throws a wrench in my setup. I now have to iterate the <th> columns and store my YADCF definitions in such a way that they can be retrieved by a name, and then I must assign numbers. This is some pretty unfortunate boilerplate.

Please support a target options that can take a string.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vedmackcommented, Nov 19, 2018

@VictorioBerra, you are welcome… if you referring the npm module update - then I will update the beta on npm the day after tomorrow

p.s

Thanks for your code that I based this feature on

0reactions
vedmackcommented, Nov 22, 2018

Heya… npm install yadcf@beta

Read more comments on GitHub >

github_iconTop Results From Across the Web

columnDefs.targets - DataTables
The columnDefs option allows a column definition object to be defined and then assigned to one or more columns in a DataTable, regardless...
Read more >
Disable sorting for a particular column in jQuery DataTables
columnDefs now accepts a class. I'd say this is the preferred method if you'd like to specify columns to disable in your markup:...
Read more >
File: workspace\templates\datatables.js - GitHub
If given as * a TR node then the data source for the whole row will be ... @returns {boolean} true if this...
Read more >
Development Guide Volume 6: Metadata Repository ...
This reference guide is for application developers that want a better understanding of how ModeShape works, how to take advantage of its advanced...
Read more >
ModeShape - Red Hat on GitHub
For example, Hibernate is one of the most feature-rich JPA ... If you're using ModeShape repositories via our graph API rather than JCR,...
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