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

Added excludeLastSingleItem option and functionality #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

avjaarsveld
Copy link

Users can set excludeLastSingleItem (default false) to exclude the last item from the wrecker table if there is an odd number of items. This allows for the last item to appear as if it's in the last row of the table but spanning multiple columns (using CSS).

Example:
JS:
Container.wrecker({
itemSelector : ".single_entry",
maxColumns : 2,
excludeLastSingleItem : true
});

CSS:
.wrecker-single-last {
background-color: $table-bg-color;
border-top: $table-border;
//etc
}

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