{"action":"closed","issue":{"url":"https://api.github.com/repos/handsontable/react-handsontable/issues/82","repository_url":"https://api.github.com/repos/handsontable/react-handsontable","labels_url":"https://api.github.com/repos/handsontable/react-handsontable/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/handsontable/react-handsontable/issues/82/comments","events_url":"https://api.github.com/repos/handsontable/react-handsontable/issues/82/events","html_url":"https://github.com/handsontable/react-handsontable/issues/82","id":337172318,"node_id":"MDU6SXNzdWUzMzcxNzIzMTg=","number":82,"title":"How can I use the updateSettings() to change my table settings on React?","user":{"login":"whyjay17","id":20486323,"node_id":"MDQ6VXNlcjIwNDg2MzIz","avatar_url":"https://avatars0.githubusercontent.com/u/20486323?v=4","gravatar_id":"","url":"https://api.github.com/users/whyjay17","html_url":"https://github.com/whyjay17","followers_url":"https://api.github.com/users/whyjay17/followers","following_url":"https://api.github.com/users/whyjay17/following{/other_user}","gists_url":"https://api.github.com/users/whyjay17/gists{/gist_id}","starred_url":"https://api.github.com/users/whyjay17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whyjay17/subscriptions","organizations_url":"https://api.github.com/users/whyjay17/orgs","repos_url":"https://api.github.com/users/whyjay17/repos","events_url":"https://api.github.com/users/whyjay17/events{/privacy}","received_events_url":"https://api.github.com/users/whyjay17/received_events","type":"User","site_admin":false},"labels":[{"id":860295454,"node_id":"MDU6TGFiZWw4NjAyOTU0NTQ=","url":"https://api.github.com/repos/handsontable/react-handsontable/labels/Answered","name":"Answered","color":"aaf998","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-30T00:46:23Z","updated_at":"2018-08-21T08:02:50Z","closed_at":"2018-08-21T08:02:50Z","author_association":"NONE","body":"I am using a HandsonTable component in my component. \r\n\r\nDuring my application process, I render a HandsonTable on a certain step. On this step, I enable the merge option by assigning `[  'mergeCells' ]` on `contextMenu` attribute of the component. After user makes changes on the table, the user can go to the next step. The next step has the same table with the updated value since it's the same component. Now in this step, I want to disable the `mergeCells` option and add a `'row_above', 'row_below'` option. \r\n\r\nI thought I had to use the updateSettings function like:\r\n\r\n```\r\n        this.updateSettings({\r\n          contextMenu: ['row_above', 'row_below', 'mergeCells'],\r\n        })\r\n```\r\n\r\nBut this one says `updateSettings` is not a function.\r\n\r\nI really want to know how this can be used in React and a clear example of how settings can be changed dynamically.\r\n\r\nThanks in advance."}}
{"actor":{"display_login":"AMBudnik"}}