This extension is used to transfer options between two select filed.
protected/extensionsSee the following code example:
$this->widget('application.extensions.optiontransferselect.Optiontransferselect',array( 'leftTitle'=>'label1', 'rightTitle'=>'label2', 'name'=>'Model[ids][]', 'list'=>$leftOption, 'doubleList'=>$rightOption, 'doubleName'=>'Model[ids2][]'));
$leftOption and $rightOption like the following: $leftOption =array(array('id1'=>'name1'),array('id2'=>'name2')); $rightOption =array(array('id3'=>'name3'),array('id4'=>'name4'),array('id4'=>'name4'),array('id5'=>'name5'));
If you think that can, please make a rating, has been encouraging to me
Total 6 comments
Thanks a lot for this wonderful extension . I am new to this filed and got a question .
I have
based on the above drop down selection , I want to populate Source drop down in the below widget . I mean in the below widget code want to pass the above selected code in the "findAll" method .
Could you please advise thanks for your help ?
Hi, I really like this extension, it's simple and delivers full functionallity! As I have a special issue, I would like to know, if this is possible;)
I have a teams=array() and a relation table tournament, team, competition so -> while I add a team to the "selected" list, I need to pass the additional parameters tournament and competition... (stored in input-fields...) How can I do this?
Thx a lot! Phil
this is what i need, thanx.
Hi sharehua,
Tank you for your reply.
I believe that callback function need to be writed in javascript, isn't it?
So can you give me a light, on how to do that?
Thank you again.
Correction: skinnabled
You can add beforemove callback function at echo '$("#select_right").multiSelect("#select_left", {trigger: "#options_left",trigger_up: "#options_right_up", trigger_down: "#options_right_down", keepSelected:false});'; of the Optiontransferselect.php file to caculate that if can move options.
That's it.
Can you put a, optional, limit on how many options can be transfered to the right size?
Can you make this skynnabled?
Thank you.
Leave a comment
Please login to leave your comment.