Closed ningen1 closed 2 years ago
Hi,
is it possible to have conditions when using
{{ render_table(table_data, show_actions=True, model=Mymodel, view_url=('contact_link', [('link_id', ':id')]) ) }
to show the action per condition, to have it active or disabled for example ? any ideas how can i achieve that ?
first of all to say - amazing project! <3
edit: Ok i just end up having multiple tables based on condition, also works for me
Thanks for the kind words. You can also pass a boolean variable to the show_actions.
show_actions
Hi,
is it possible to have conditions when using
{{ render_table(table_data, show_actions=True, model=Mymodel, view_url=('contact_link', [('link_id', ':id')]) ) }
to show the action per condition, to have it active or disabled for example ? any ideas how can i achieve that ?
first of all to say - amazing project! <3
edit: Ok i just end up having multiple tables based on condition, also works for me