{"action":"created","issue":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/718","labels_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/718/labels{/name}","comments_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/718/comments","events_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/718/events","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/718","id":67299481,"number":718,"title":"bootstrap-table-mobile toggle does not respect change from outside of plugin","user":{"login":"maxgrass","id":169885,"avatar_url":"https://avatars.githubusercontent.com/u/169885?v=3","gravatar_id":"","url":"https://api.github.com/users/maxgrass","html_url":"https://github.com/maxgrass","followers_url":"https://api.github.com/users/maxgrass/followers","following_url":"https://api.github.com/users/maxgrass/following{/other_user}","gists_url":"https://api.github.com/users/maxgrass/gists{/gist_id}","starred_url":"https://api.github.com/users/maxgrass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxgrass/subscriptions","organizations_url":"https://api.github.com/users/maxgrass/orgs","repos_url":"https://api.github.com/users/maxgrass/repos","events_url":"https://api.github.com/users/maxgrass/events{/privacy}","received_events_url":"https://api.github.com/users/maxgrass/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-09T07:33:43Z","updated_at":"2015-04-10T09:03:16Z","closed_at":"2015-04-10T09:03:16Z","body":"A thought about manual toggle vs/plus auto-toggle.\r\n\r\nThe var `toggled` saves not the state but the event occurrence, so toggling with the toggle BUTTON (or programmatically) will toggle the table and then when automatic/mobile toggle kicks in it does not consider the static/button toggle i.e. the actual state of the table.\r\n\r\nRepro:\r\n\r\nmobileResponsive: true,\r\nshowToggle: true\r\n\r\n- minimize the window, so table toggles into the cardView.\r\n- click on toggleView button.\r\n- maximize the window\r\n\r\nExpected:\r\n\r\nas mobile constraint states\r\n`toggle INTO CARDVIEW should happen, iff WIDTH <= MINWIDTH`\r\nby MAXIMIZING the window `width>minwidth` so the \"table must not switch into the cardView\"\r\n\r\nHappens:\r\n\r\non maximize table switches into cardView\r\n\r\nSolution:\r\n\r\nas cardView toggle is already supported in \"main\"-module, it should be managed from there. Meaning saving a `private STATE` variable which can be toggled only by enableCardView() and disableCardView() (or simpler toggle(true), toggle(false) ) and mobile-plugin must use these.\r\n\r\nhttp://jsfiddle.net/ppcr48vn/\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/comments/91485144","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/718#issuecomment-91485144","issue_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/718","id":91485144,"user":{"login":"wenzhixin","id":2117018,"avatar_url":"https://avatars.githubusercontent.com/u/2117018?v=3","gravatar_id":"","url":"https://api.github.com/users/wenzhixin","html_url":"https://github.com/wenzhixin","followers_url":"https://api.github.com/users/wenzhixin/followers","following_url":"https://api.github.com/users/wenzhixin/following{/other_user}","gists_url":"https://api.github.com/users/wenzhixin/gists{/gist_id}","starred_url":"https://api.github.com/users/wenzhixin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenzhixin/subscriptions","organizations_url":"https://api.github.com/users/wenzhixin/orgs","repos_url":"https://api.github.com/users/wenzhixin/repos","events_url":"https://api.github.com/users/wenzhixin/events{/privacy}","received_events_url":"https://api.github.com/users/wenzhixin/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T09:03:16Z","updated_at":"2015-04-10T09:03:16Z","body":"Merged!"}}