Skip to content

table_header should render different #2

Description

table_header should not render the itself, but it should render a span, letting the developers render the TH themselves.

%th= table_header "Name", :name

Because:

  • it works better with other plugins, like my model_based_html plugin
  • if you want to display an image to show which way it is sorted (as background image), you cannot have a background image for the TH anymore.

Speaking of which: the class should be reversed. When the link points to sorting the column ascending, the class should represent the way it's sorted at this moment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions