Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Left to right Button '<' doesn't add items to left list #3

Open
amjadbooxmedia opened this issue Dec 29, 2015 · 3 comments
Open

Left to right Button '<' doesn't add items to left list #3

amjadbooxmedia opened this issue Dec 29, 2015 · 3 comments

Comments

@amjadbooxmedia
Copy link

Although it removes items from the right list, but doesn't add items to the left list.

@amjadbooxmedia
Copy link
Author

It is working fine, as my list was long, actually it adds item to the bottom. Can it maintain the sorting order??

@amjadbooxmedia
Copy link
Author

okay got it, i will use afterMove callback to sort. But how do i add this option on widget call?

@amjadbooxmedia
Copy link
Author

$this->widget('multiselects.XMultiSelects', array(
'id' => 'product-id', //since there are multiple selector pairs on this page we need to set identifier
'leftTitle' => 'Available',
'leftName' => '',
'leftList' => $visibleProductList,
'rightTitle' => 'Selected',
'rightName' => get_class($model) . '[product_id][]',
'rightList' => $selectProducts,
'size' => 15,
'width' => '350px',
));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant