Skip to content

How do I setup a select dropdown in madmin? #250

Answered by excid3
jeffgipson asked this question in Q&A
Discussion options

You must be logged in to vote
attribute :ai_platform, as: :select, collection: AiService.ai_platform_options

https://github.com/excid3/madmin/blob/main/lib/madmin/fields/select.rb#L5

It doesn't currently evaluate lambdas, but that would be a good feature to add.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jeffgipson
Comment options

Answer selected by jeffgipson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants