Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keyword attributes for table columns #4

Open
bradgessler opened this issue Mar 1, 2024 · 0 comments
Open

Add keyword attributes for table columns #4

bradgessler opened this issue Mar 1, 2024 · 0 comments

Comments

@bradgessler
Copy link
Contributor

The table column should accept any HTML attributes in the table.column method to support adding inline HTML attributes to the th tag in the table.

Table items: Interviewer.all do |table|
  table.column("Interviewer") { show(_1, :name, style: "white-space: nowrap;") }
  InterviewTime.all.each do |time|
    table.column(time.name, style: "white-space: nowrap;") { _1.interviews.build(interview_time: time)
      input(type: :checkbox, checked: [true,false].sample)
     }
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant