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

Automatic sortable table class #154

Merged
merged 1 commit into from
Jan 28, 2016
Merged

Conversation

levithomason
Copy link
Member

No description provided.

@@ -82,6 +82,7 @@ export default class Table extends Component {
const classes = classNames(
'sd-table',
'ui',
{sortable: !!this.props.onSortChange},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the sort handler is present, add the class so we get the proper formatting:

http://semantic-ui.com/collections/table.html#sortable

@ghost
Copy link

ghost commented Jan 28, 2016

🍔

levithomason added a commit that referenced this pull request Jan 28, 2016
@levithomason levithomason merged commit 8480aad into master Jan 28, 2016
@levithomason levithomason deleted the feature/table-sortable-class branch January 28, 2016 21:59
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

Successfully merging this pull request may close these issues.

1 participant