{"action":"opened","issue":{"url":"https://api.github.com/repos/jupyter-incubator/declarativewidgets/issues/508","repository_url":"https://api.github.com/repos/jupyter-incubator/declarativewidgets","labels_url":"https://api.github.com/repos/jupyter-incubator/declarativewidgets/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/jupyter-incubator/declarativewidgets/issues/508/comments","events_url":"https://api.github.com/repos/jupyter-incubator/declarativewidgets/issues/508/events","html_url":"https://github.com/jupyter-incubator/declarativewidgets/issues/508","id":177042288,"number":508,"title":"Dynamically update format for viz-col?","user":{"login":"MattKravetz","id":16551806,"avatar_url":"https://avatars.githubusercontent.com/u/16551806?v=3","gravatar_id":"","url":"https://api.github.com/users/MattKravetz","html_url":"https://github.com/MattKravetz","followers_url":"https://api.github.com/users/MattKravetz/followers","following_url":"https://api.github.com/users/MattKravetz/following{/other_user}","gists_url":"https://api.github.com/users/MattKravetz/gists{/gist_id}","starred_url":"https://api.github.com/users/MattKravetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattKravetz/subscriptions","organizations_url":"https://api.github.com/users/MattKravetz/orgs","repos_url":"https://api.github.com/users/MattKravetz/repos","events_url":"https://api.github.com/users/MattKravetz/events{/privacy}","received_events_url":"https://api.github.com/users/MattKravetz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-14T22:46:29Z","updated_at":"2016-09-14T22:46:29Z","closed_at":null,"body":"I can't seem to figure out a way to dynamically update the value of \"format\" being passed to urth-viz-col.  \r\n\r\nI am creating a dashboard where users can interact with a number of survey questions that are listed in an urth-viz-table.  When the user selects a row in the table, an urth-viz-bar widget is generated for the corresponding survey question.  Since the survey questions are denominated in different units ($, %, etc.), I would like some way of programmatically defining the format used by urth-viz-col.  My current approach works, but it is not dynamic (i.e., the format does not update until the cell is re-ran).  Is it possible to have this behavior?\r\n\r\nHere is the code for the offending cell:\r\n \r\n```\r\n%%html\r\n<template is=\"urth-core-bind\" channel=\"val\">\r\n    <template is='dom-if' if='{{selfSel}}'>\r\n        <urth-core-function id='chartFunc'\r\n            ref='prepare_for_chart'\r\n            arg-question=\"{{selfSel.Question}}\"\r\n            result=\"{{selfData}}\"\r\n            auto></urth-core-function>\r\n        <urth-core-function id=\"refreshFormFunc\"\r\n            ref=\"refresh_format\"\r\n            arg-question=\"{{selfSel.Question}}\"\r\n            result=\"{{form}}\"\r\n            auto></urth-core-function>\r\n        <urth-viz-bar datarows=\"{{selfData.data}}\" columns=\"{{selfData.columns}}\">\r\n            <template is='dom-repeat' items=\"{{n_cols}}\">\r\n                    <urth-viz-col index=\"{{item}}\" format=\"{{form}}\" type=\"numeric\"></urth-viz-col>\r\n            </template>\r\n        </urth-viz-bar>\r\n    </template>\r\n</template>\r\n```\r\n\r\nApologies if this is an improper use of this forum - I'm new to GitHub and this project, so I'm not quite sure if this qualifies as an \"issue\" or if I'm just missing something.  Any help would be greatly appreciated!"}}
{"actor":{"display_login":"MattKravetz"}}