Is there any way to assign dynamic classname for each row inside a table_for #8251
Unanswered
IshmeetSingh06
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a custom admin page like this
ActiveAdmin.register_page "Custom Page" do
content do
div class: "index_as_table" do
table_for(paginated_collection, class: "index_table index") do
column :id
column :status
end
end
end
end
based upon some logic I want to assign different classname to row
for example if row1 has id in my_array I would assign "my-row" id to it
Beta Was this translation helpful? Give feedback.
All reactions