-
Notifications
You must be signed in to change notification settings - Fork 93
table plus
blizz edited this page Sep 12, 2010
·
3 revisions
| Attribute | Description | Default Value | Example |
|---|---|---|---|
| sort-columns | identify which columns can be sorted | nil | sort-columns=“this,updated_at” |
| Parameter | Tag | Description | Default Content |
|---|---|---|---|
| header | <div> | table header | search form |
| search-form | <form> | search form | form to search table |
| [#{scope.field_name}-heading | <th> | custom column header | scope.field_name.titleize with links for sorting if sort-columns used |
| #{scope.field_name}-heading-link | <a> | custom column header link | link for sorting if sort-columns used |
| up-arrow | <do> | arrow appended to column name to indicate sort direction | uarr |
| down-arrow | <do> | arrow appended to column name to indicate sort direction | darr |
| empty-message | <do> | message displayed in absence of rows | No <collection-name lowercase> |
| page-nav | <page-nav> | pagination control |