Closed djplaner closed 3 years ago
contentInterface method has a handleBlackboardCards method
handleBlackboardCards
i.e. there might be separate lists of cards through out a document, group them together
- could be part of the contentInterface model. This is a very contentInterface thing to do
- This could be a pre-cursor of the model identifying the various content elements and using that to figure out what views to call
- hides the card elements and add the bbitems to a list
- call extractCardsFromCotent on that bbItem list to get the models
- this could be an in to the original card model
- this approach could be used to allow the Card Interface to have separate elements where there's a bulleted list in content items for cards - matching the bulleted list in Word doc
- call addCardInterface to generate HTML for those cards and place them
- This is getting into view territory
- add the event listeners for the cards
There would (eventually) be some sort of inheritance relationship with the Card Interface views and models
Leaving this aside. Cards now in Content.js. Need to move to webpack or some related approach before going down this route.
Using models and views.