New feature in details view
See original GitHub issueI was playing around with details view in my admin panel and thought that it would be nice to have ability to group data for viewing convenience. Is this kind of feature wanted in flask-admin? If so I could make it.
Code example:
def get_columns_grouped():
d = OrderedDict() #using ordered dict for strict ordering
d['Main'] = ('user', 'status', 'created_at')
d['Private'] = ('ssn', 'dob', 'dl_state', 'dl_number', 'sex')
d['Financial Info'] = ('account', 'routing')
d['Billing Address'] = ('address', 'city', 'state', 'zip')
return d
class AccountModelView(SecureModelView):
details_grouped = True
details_columns_grouped = get_columns_grouped()
I’m attaching a screenshot so you can better understand what I’m talking about.
Versus
Issue Analytics
- State:
- Created 8 years ago
- Comments:38 (26 by maintainers)
Top Results From Across the Web
iOS 16 - New Features - Apple
See all the latest features, enhancements, app updates, and more in iOS 16 for ... Choose to view notifications on the Lock Screen...
Read more >Windows 11 New File Explorer Experience New Features ...
This post will learn about Windows 11 new file explorer experience design details. There are several new design changes in the Windows 11 ......
Read more >Build a details view - Android Developers
Creating an activity for your details view, separate from the browse activity, enables you to invoke your details view using an Intent ....
Read more >What's new in recent Windows updates - Microsoft Support
See what's new in recent Windows 10 and Windows 11 updates, including a chat from the taskbar, widgets, snap groups, and more.
Read more >How To Find Details on New Microsoft 365 Features - YouTube
The links in their Weekly Digest are no longer functional so if you click VIEW MORE admin.microsoft.com will open but the sidebar with ......
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 Free
Top 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
details template:
Update: Of course, if needed, use OrderedDict as OP recommends.
This can be currently implemented by using declaring a method in at the view class which returns an dict, then accessing dict via
admin_view
variable in the template :