×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Sorting dropdown list in Admin Panel
Marc Rosenblitt
New Member
Posts: 1
1 năm 3 tháng trước #10046
bởi Marc Rosenblitt
Sorting dropdown list in Admin Panel was created by Marc Rosenblitt
So I'm almost done with building a J4 verson of a component I built 7 years ago. I've figured out almost everything, except how to filter and sort a dropdown list in the admin component edit page.
I have 3 tables. Council, Club, Board. A club has Board Members and belongs in a single council.
When you go to edit a Board Member, the dropdown list of Clubs that the Board member might belong to is 1.) sorting by ID and 2.) displaying entries that are not published any more. I need to filter that list by just the published clubs and sort it by club name.
I was trying to find an SQL statement somewhere, like how the filter dropdown does it. But after a few hours of poking in the code, I just can't figure it out.
I have 3 tables. Council, Club, Board. A club has Board Members and belongs in a single council.
When you go to edit a Board Member, the dropdown list of Clubs that the Board member might belong to is 1.) sorting by ID and 2.) displaying entries that are not published any more. I need to filter that list by just the published clubs and sort it by club name.
I was trying to find an SQL statement somewhere, like how the filter dropdown does it. But after a few hours of poking in the code, I just can't figure it out.
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Anna
New Member
Posts: 3
1 năm 1 tháng trước - 1 năm 1 tháng trước #10099
bởi Anna
Replied by Anna on topic Sorting dropdown list in Admin Panel
The sort function prototype is sort(compareFn?: (a: T, b: T) => number): this; with: Sorts an array. * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.
Kroger ExpressHR
Last edit: 1 năm 1 tháng trước by Anna .
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Thời gian tải trang: 0.139 giây