Download the file and put it on your extension folder
Yii 1.1.12 or above haven't tested 1.1.12 below
Extension is similar to CListView.
$this->widget('ext.isotope.Isotope',array( 'dataProvider'=>new CActiveDataProvider('User'), 'itemView'=>'_view', 'itemSelectorClass'=>'item', 'options'=>array(), // options for the isotope jquery 'infiniteScroll'=>true, // default to true 'infiniteOptions'=>array(), // javascript options for infinite scroller 'id'=>'wall', ));
<div class="post item" style="220px"> <div class="well"> <h4> <a href="<?php echo $data->link ?>" target="_blank"><?php echo $data->title </a> </h4> <div class="info"> <span class="badge"><?php date('M jS, g:ia',strtotime($data->created_at)) </span> </div> </div> </div>
Total 7 comments
the docu old
Hi . i want to change the loadingText here my Config
Here my output Js
But nothing changed always the standard Text any ideas ?
don set overflow hidden on html and body ^^ . Thx for nice Extension without bugs and clean Code. Some Trouble with Browser if i use Images i fix it with the follow Code.
$(window).load(function()
and for infinite i insert the elements and dont append
[php] protected function assignInfiniteCallback(){ // trigger Masonry as a callback $defaultCallback="function( newElements ) { /* hide new items while they are loading*/ var newElems = jQuery( newElements ); \$isoContainer.delay(500).isotope( 'insert', newElems );{$this->infiniteCallback}}"; return $defaultCallback; }
Maybe anyone helps out
look at your queries. maybe your data has 10rows and doesnt have pagination anymore.
this is my Config
when i scrolled to end of page there was no network action . My quetsion i have to configure the infinite ? i lokk at the demo and my script are the same like the demo
That's depend on your CSS framework, mine I'm using Bootstrap Twitter as my CSS framework when you check the http://bryantan.info/isotope/ and resized it! it is working perfectly.
but anyway congrats.
But when i resize the window style will not work properly.
Leave a comment
Please login to leave your comment.