Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

Added excludeLastSingleItem option and functionality #3

Open
wants to merge 3 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
}

@stevenvachon stevenvachon force-pushed the master branch 6 times, most recently from 47636c9 to c2a651b Compare February 22, 2025 23:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants