We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class MyTable(tables.Table): my_column = tables.CheckBoxColumn( attrs={'input': { 'ic-post-to': lambda record: record.pk }}, checked=lambda value, _: value, )
gives <lambda>() missing 1 required positional argument: 'record'
<lambda>() missing 1 required positional argument: 'record'
class MyTable(tables.Table): my_column = tables.CheckBoxColumn( attrs={'td': { 'ic-post-to': lambda record: record.pk }}, checked=lambda value, _: value, )
works fine.
The text was updated successfully, but these errors were encountered:
I see that the <input> attrs do not get optional arguments. Let's see if that can be easily fixed.
<input>
attrs
Sorry, something went wrong.
Pass records to CheckboxColumn's attrs too
a780c23
fixes: #762
940f795
Pass record/value to CheckboxColumn's attrs callables too (#774)
654e82f
Successfully merging a pull request may close this issue.
gives
<lambda>() missing 1 required positional argument: 'record'
works fine.
The text was updated successfully, but these errors were encountered: