{"action":"created","issue":{"url":"https://api.github.com/repos/rapsacnz/DualSelect/issues/3","repository_url":"https://api.github.com/repos/rapsacnz/DualSelect","labels_url":"https://api.github.com/repos/rapsacnz/DualSelect/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rapsacnz/DualSelect/issues/3/comments","events_url":"https://api.github.com/repos/rapsacnz/DualSelect/issues/3/events","html_url":"https://github.com/rapsacnz/DualSelect/issues/3","id":302379321,"number":3,"title":"Setting left / right values does not update component","user":{"login":"matthewpomar","id":7439207,"avatar_url":"https://avatars1.githubusercontent.com/u/7439207?v=4","gravatar_id":"","url":"https://api.github.com/users/matthewpomar","html_url":"https://github.com/matthewpomar","followers_url":"https://api.github.com/users/matthewpomar/followers","following_url":"https://api.github.com/users/matthewpomar/following{/other_user}","gists_url":"https://api.github.com/users/matthewpomar/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewpomar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewpomar/subscriptions","organizations_url":"https://api.github.com/users/matthewpomar/orgs","repos_url":"https://api.github.com/users/matthewpomar/repos","events_url":"https://api.github.com/users/matthewpomar/events{/privacy}","received_events_url":"https://api.github.com/users/matthewpomar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-05T16:56:44Z","updated_at":"2018-03-06T20:34:10Z","closed_at":null,"author_association":"NONE","body":"I've added the `DualSelect` component to a wrapper component:\r\n\r\n```\r\n<aura:component implements=\"forceCommunity:availableForAllPageTypes\" access=\"global\">\r\n\r\n    <aura:attribute name=\"leftValues\" type=\"Object[]\" access=\"public\" default=\"[]\" />\r\n    <aura:attribute name=\"rightValues\" type=\"Object[]\" access=\"public\" default=\"[\r\n           {\r\n           'label': 'Annual Review',\r\n           'value': 'Annual Review'\r\n           },\r\n           {\r\n           'label': 'Initial Contact',\r\n           'value': 'Initial Contact'\r\n           },\r\n           {\r\n           'label': 'Application',\r\n           'value': 'Application'\r\n           }]\" />\r\n    \r\n    <aura:handler name=\"init\" action=\"{!c.doInit}\" value=\"{!this}\" />        \r\n\r\n    <div class=\"slds\">\r\n        <div class=\"slds-box\">\r\n            <c:DualSelect fieldName=\"Skills\" leftValues=\"{!v.leftValues}\" rightValues=\"{!v.rightValues}\" />\r\n        </div>\r\n    </div>\r\n</aura:component>\r\n```\r\n\r\n```\r\n({\r\n    doInit : function(component, event, helper) {\r\n    \r\n    \tvar leftValues = component.get(\"v.leftValues\");\r\n    \t\r\n    \tleftValues.push({\r\n           'label': 'Annual Review',\r\n           'value': 'Annual Review'\r\n           });\r\n\t\t\r\n\t\tcomponent.set(\"v.leftValues\", leftValues);\r\n    } \r\n})\r\n\r\n```\r\nThe 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.\r\n\r\nDo I have to fire an event to get them show up? If so, would you mind providing an example?\r\n\r\nThanks again!"},"comment":{"url":"https://api.github.com/repos/rapsacnz/DualSelect/issues/comments/370918623","html_url":"https://github.com/rapsacnz/DualSelect/issues/3#issuecomment-370918623","issue_url":"https://api.github.com/repos/rapsacnz/DualSelect/issues/3","id":370918623,"user":{"login":"matthewpomar","id":7439207,"avatar_url":"https://avatars1.githubusercontent.com/u/7439207?v=4","gravatar_id":"","url":"https://api.github.com/users/matthewpomar","html_url":"https://github.com/matthewpomar","followers_url":"https://api.github.com/users/matthewpomar/followers","following_url":"https://api.github.com/users/matthewpomar/following{/other_user}","gists_url":"https://api.github.com/users/matthewpomar/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewpomar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewpomar/subscriptions","organizations_url":"https://api.github.com/users/matthewpomar/orgs","repos_url":"https://api.github.com/users/matthewpomar/repos","events_url":"https://api.github.com/users/matthewpomar/events{/privacy}","received_events_url":"https://api.github.com/users/matthewpomar/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T20:34:10Z","updated_at":"2018-03-06T20:34:10Z","author_association":"NONE","body":"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.\r\n\r\nIt 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 `moveitems`, `moveComplete`, and `dragComplete`.\r\n\r\nI 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?"}}
{"actor":{"display_login":"matthewpomar"}}