Comments (2)
Hi @joholo , thanks for the PR! There have been several other people who want access to the place holder div in the subview creator function, see #12 and #18. We have resisted adding this functionality as we do not think it is the cleanest pattern but it seems to be in high demand. I don't want to hold people back from doing things the way they see fit. We'll do a patch shortly that incorporates this functionality and also allows you to override how subviews are created as described in #20 (and currently available on https://github.com/rotundasoftware/backbone.subviews/tree/override-creator).
Thanks very much for your feedback and contribution.
from backbone.subviews.
Great! That would take care of passing the ID and class (along with anything else) to the subview creator function.
Thank you for providing such a great plugin. With the new patch we can stop rolling our own way of creating subviews.
from backbone.subviews.
Related Issues (13)
- Repeating subviews HOT 3
- Pass parameters from markup to subviewCreator HOT 1
- Use as a minimal layout manager? HOT 7
- Use Backbone.$ reference instead of global $ HOT 2
- Pass thisPlaceHolderDiv to subviewCreator function HOT 2
- subviewCreators: rename as subViews HOT 2
- Problem with underscore template helper HOT 4
- allow lookups of subview creators to be a function call HOT 8
- Subviews with marionette HOT 1
- Backbone 1.2.0 support HOT 3
- Minor code nitpick HOT 1
- Available via NPM? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backbone.subviews.