{"action":"created","issue":{"url":"https://api.github.com/repos/KleeGroup/focus-components/issues/686","labels_url":"https://api.github.com/repos/KleeGroup/focus-components/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/KleeGroup/focus-components/issues/686/comments","events_url":"https://api.github.com/repos/KleeGroup/focus-components/issues/686/events","html_url":"https://github.com/KleeGroup/focus-components/issues/686","id":117382946,"number":686,"title":"[Cartridge - suggestion] Extend the cartridge configuration mixin.","user":{"login":"JabX","id":3266897,"avatar_url":"https://avatars.githubusercontent.com/u/3266897?v=3","gravatar_id":"","url":"https://api.github.com/users/JabX","html_url":"https://github.com/JabX","followers_url":"https://api.github.com/users/JabX/followers","following_url":"https://api.github.com/users/JabX/following{/other_user}","gists_url":"https://api.github.com/users/JabX/gists{/gist_id}","starred_url":"https://api.github.com/users/JabX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JabX/subscriptions","organizations_url":"https://api.github.com/users/JabX/orgs","repos_url":"https://api.github.com/users/JabX/repos","events_url":"https://api.github.com/users/JabX/events{/privacy}","received_events_url":"https://api.github.com/users/JabX/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KleeGroup/focus-components/labels/Enhancement","name":"Enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/KleeGroup/focus-components/labels/External","name":"External","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-17T15:44:48Z","updated_at":"2015-11-17T16:19:30Z","closed_at":null,"body":"Right now, as of Core 0.11 / Components 0.7.4, the cartridgeConfiguration mixin only supports a subset of the possible configuration updates of the cartridge. There are a few parts of the header/cartridge that can only be set and update through a direct `handleViewAction()` call, such as the `BarRight` component for instance (`BarLeft` can be updated though).\r\n\r\nMy first suggestion would be then to update the cartridgeConfiguration mixin to full support the whole range of supported header/cartridge updates.\r\n\r\n\r\nIn addition, by default, the header has two (or three?) sizes: small, medium (and large?). There is currently no way to remove this behaviour, like #671 would want. There is a `sizeMap` that is supposed to control how the switching between the sizes should work, but I'm not sure it works as it should as I didn't (and others didn't either) manage to achieve the #671 wanted behavioue with it.\r\n\r\nMy second suggestion would be to rework the way the sizeMap works (and add it to the cartridgeConfiguration of course) to be a list of desired sizes with their attributes, like this for instance:\r\n\r\n```javascript\r\nsizeMap = [\r\n    {\r\n        name: 'small',\r\n        height: '100px',\r\n        displayWhenScrollInRange: [300, 1000]\r\n    },\r\n    {\r\n        name: 'medium',\r\n        height: '300px',\r\n        displayWhenScrollInRange: [0, 300]\r\n    }\r\n]\r\n```\r\n\r\nThat could also be used to solve the 'zigwigwi' issue since changing the `sizeList` could prevent the behaviour from happening.\r\n\r\n\r\nThird suggestion: it would be awesome if we could define a default cartridge/header in the layout initialization, and that for each parameter that isn't provided in the cartridgeConfiguration the default value is taken instead of nothing/the previous value.\r\n\r\n."},"comment":{"url":"https://api.github.com/repos/KleeGroup/focus-components/issues/comments/157418715","html_url":"https://github.com/KleeGroup/focus-components/issues/686#issuecomment-157418715","issue_url":"https://api.github.com/repos/KleeGroup/focus-components/issues/686","id":157418715,"user":{"login":"Tommass","id":5349745,"avatar_url":"https://avatars.githubusercontent.com/u/5349745?v=3","gravatar_id":"","url":"https://api.github.com/users/Tommass","html_url":"https://github.com/Tommass","followers_url":"https://api.github.com/users/Tommass/followers","following_url":"https://api.github.com/users/Tommass/following{/other_user}","gists_url":"https://api.github.com/users/Tommass/gists{/gist_id}","starred_url":"https://api.github.com/users/Tommass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tommass/subscriptions","organizations_url":"https://api.github.com/users/Tommass/orgs","repos_url":"https://api.github.com/users/Tommass/repos","events_url":"https://api.github.com/users/Tommass/events{/privacy}","received_events_url":"https://api.github.com/users/Tommass/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T16:19:30Z","updated_at":"2015-11-17T16:19:30Z","body":"@JabX please respect the CONTRIBUTING guidelines https://github.com/KleeGroup/focus-components/blob/develop/CONTRIBUTING.md"}}