Yii Framework Forum: [Ask] - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Ask] TbTypeahead ext not works Rate Topic: -----

#1 User is offline   santi maria 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 17-April 13

Posted 04 August 2014 - 01:08 AM

Hello guys.. :D
i want to use TbTypeahead ekstensions, i already follow the tutorial.
but it doesnt work

this is my code

<?php $list = CHtml::listData(appbTNodt::model()->findAll(),'NO_DT','NO_DT');?>


<?php $this->widget('booster.widgets.TbTypeahead', array(
'model'=>$modelTimbangKosong,
'attribute'=>'NO_DT',
'options'=>array(
'source'=>array($list),
'items'=>4,
'matcher'=>"js:function(item) {
return ~item.toLowerCase().indexOf(this.query.toLowerCase());
}",
),
)); ?>


any one can help me T_T
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users