Skip to content

Add keyword attributes for table columns #4

Description

@bradgessler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions