ButtonCol or Link col dynamic routes?
See original GitHub issueIs it possible to set dynamic routes for a Button or LinkCol.
Current:
lass SupTable(Table):
master_sup_id= Col('ID')
supplier_name=Col('Supplier Name')
supplier_state=Col('State')
supplier_zip=Col('Zip')
edit = ButtonCol('Edit','administrator.sup_master',url_kwargs=dict(master_sup_id='master_sup_id'))
lets say sup master is defined
@administrator.route('/supplier/<obj_id:int>')
def sup_master(obj_id):
....
except button col would be able to add the obj_id instead of passing an arg.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Flask table and LinkCol, ButtonCol - passing value as URL ...
I use the following format: edit = LinkCol('Edit', 'app.foo', url_kwargs=dict(id='id')). Equivalent to url_for('app.foo', id=id).
Read more >Flask Table
ButtonCol (subclass of LinkCol) creates a button that posts the the given address. NestedTableCol - allows nesting of tables inside columns. More about...
Read more >Problems in changing dinamically theme with filled navigations bar ...
Hi, I've realized a panel that changes color dinamically. If I apply “filled” CSS and i change the color everything changes (buttons, checkboxes,...
Read more >how to redirect to another page in react js on button click - You.com ...
Dynamic paths can include names and id's or whatever variable you would like. You first have to adjust your route and then change...
Read more >Solved: Re: How to check for a variable from client contro...
<div class="landing-button col-md-3 hidden-xs hidden-sm"> <a href="{{data.url}}" title="Open LINK"> <img class="image" class="icon" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh I see you are using url_for. good work on this btw.
It may be worth posting up in the examples a SSE of this and some CRUD MethodView child classes working together as a pull request. It seems I am writing a crud api and any help would be appreciated.