-
Notifications
You must be signed in to change notification settings - Fork 8
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
Setting left / right values does not update component #3
Comments
I'll see if I can fire up your example later today. If the right side is getting them, then it shouldn't be hard to get the left to detect that the list has changed - perhaps just call reinit on the left side list? |
Hi, I looked through your code, and I didn't see any events or methods that handled attribute data changing for left- or right-side items. It's entirely possible (even likely) I'm overlooking something. It would seem there should be some kind of event I would need to fire after setting the left/right-side object[] values. But the only event that that comes close are tied to methods I guess it would be helpful to know if this version of your component is useable as is, or does it need to be extended to handle setting the data and runtime via Javascript object arrays? |
I ended up going with the new Salesforce |
Just for completeness' sake, all you had to do was add a change handler to the ordered list to detect when it's values were updated:
|
I've added the
DualSelect
component to a wrapper component:The right side shows the 3 initial values OK, but the left side does not. If I inspect the
leftSide
attribute, the values are in there, but the component doesn't seem to know about them, or at least fails to update the UI with those values.Do I have to fire an event to get them show up? If so, would you mind providing an example?
Thanks again!
The text was updated successfully, but these errors were encountered: