Either the documentation for this plugin is non-existent, or I'm blind, but I'm looking for a way to:
- Force the elastic-grid jQuery plugin to display 3 items per row
- Force the filter selectors (elastic-grid navbar above the grid) to align to the center of the page
Here is my function (all values replaced with placeholders for simplicity):
<script type="text/javascript">
$(function(){
$("#elastic_grid").elastic_grid({
'showAllText' : 'All',
'filterEffect' : 'popup',
'hoverDirection' : true,
'hoverDelay' : 0,
'hoverInverse' : false,
'expandingSpeed' : 500,
'expandingHeight' : 364,
'items' : [
{
'title' : 'Item',
'description' : 'Desc',
'thumbnail' : ['/path/to/image.jpg'],
'large' : ['/path/to/image.jpg'],
'button_list': [
{
'title' : 'Visit Website',
'url' : '<url>',
'new_window' : true
},
],
'tags' : ['tag1']
},
{
'title' : 'Item',
'description' : 'Desc',
'thumbnail' : ['/path/to/image.jpg'],
'large' : ['/path/to/image.jpg'],
'button_list' : [
{
'title' : 'Visit Website',
'url' : '<url>',
'new_window' : true
},
],
'tags' : ['tag2']
},
{
'title' : 'Item',
'description' : 'Desc',
'thumbnail' : ['/path/to/image.jpg'],
'large' : ['/path/to/image.jpg'],
'button_list' : [
{
'title' : 'Visit Website',
'url' : '<url>',
'new_window' : true
},
],
'tags' : ['tag3']
},
{
'title' : 'Item',
'description' : 'Desc',
'thumbnail' : ['/path/to/image.jpg'],
'large' : ['/path/to/image.jpg'],
'button_list' : [
{
'title' : 'Visit Website',
'url' : '<url>',
'new_window' : true
},
],
'tags' : ['tag4']
},
{
'title' : 'Item',
'description' : 'Desc',
'thumbnail' : ['/path/to/image.jpg'],
'large' : ['/path/to/image.jpg'],
'button_list' : [
{
'title' : 'Visit Website',
'url' : '<url>',
'new_window' : true
},
],
'tags' : ['tag5']
},
{
'title' : 'Item',
'description' : 'Desc',
'thumbnail' : ['/path/to/image.jpg'],
'large' : ['/path/to/image.jpg'],
'button_list' : [
{
'title' : 'Visit Website',
'url' : '<url>',
'new_window':true
},
],
'tags' : ['tag6']
},
]
});
});
</script>
If it's possible, where can I define:
- The number of items per row
- The alignment of the filter selectors (i.e.
'All' | 'Tag1' | 'Tag2' | etc
)