backbone.marionette
backbone.marionette copied to clipboard
Add more live examples
We have a good start with making live examples, but we have to do more work to cover all docs by them. Here pages without live examples
- [ ] Regions
- [ ] CollectionViewAdvanced
- [ ] ViewLifecycle
I would like to collaborate on this issue, how can I create Live Examples?
It'd be finding the areas within the docs that need them and forking off of jsfiddle.net/marionettejs/adhv48ky/ to make the examples. You can use your own url and we'll update them to the marionette account upon merge
Should a live example be created for the 'Remove Region' and 'Adding Region' sections?
I think the only place that an example would not improve the docs is if one already exists :-D
Hi.
@paulfalgout, what you think about this live example for the section 'Adding Region'?
https://fiddle.jshell.net/charlyjazz/gze5ykov/16/
Do you think that is a good example? Or do we need an example more oriented to a real life scenario?
Hmm I think a more real life scenario would be better. Perhaps something like:
getTemplate() {
if (this.isAdmin) return AdminTemplate;
return Template;
},
onRender() {
if (this.isAdmin) {
this.addRegion('admin', '#admin-panel');
this.showChildView('admin', 'You are an admin!');
}
}
Hi @paulfalgout, what you think about this live example for the section 'Adding Region'?
http://jsfiddle.net/charlyjazz/gze5ykov/49/
How can i view these live examples? In my here the site 'http://jsfiddle.net' can’t be reached.
Hmm maybe you'd need a VPN? Not sure why jsfiddle wouldn't work