GithubHelp home page GithubHelp logo

miphe / backbone-seed Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 50 KB

Seed project with Backbone + Marionette, Grunt and Browserify.

License: GNU General Public License v3.0

JavaScript 12.34% CoffeeScript 63.93% HTML 6.61% CSS 17.12%

backbone-seed's People

Contributors

miphe avatar

Stargazers

 avatar

Watchers

 avatar  avatar

backbone-seed's Issues

UI tabs component, break off tabs functionality to behaviors

Tab functionality for UI Tabs should derive from behaviors. Move this functionality to a behavior repository.

When creating Tab views, it should go something like this:

# Creates new Tab UI
tabUICollection = new UI.Collection.Navigation
tabUICollection.add { view: contentView1, label: 'Number one!' }
tabUICollection.add { view: contentView2, label: 'Second here', active: true }
tabUICollection.add { view: contentView3, label: 'And the last' }

tabUI = new Some.Nice.View
  collection: tabUICollection
  behaviors: [Tabbable]

Radio.channel('app').trigger 'show:view:main', tabUI

Refactor ui-tabs component to be more event driven

It's too complicated at the moment, to create a tabbed interface. I would like to do something like this:

# Example of a tab ui component
tab1View = new Some.View
  model: Some.Model

tab2View = new Some.Other.View
  model: Some.Other.Model
  collection: Some.Collection

tab3View = new Yet.Another.View
  model: Yet.Another.Model

tabUICollection = new UI.Collection.Navigation
tabUICollection.add { label: 'Number one!',  view: tag1View }
tabUICollection.add { label: 'Second here',  view: tag2View, active: true }
tabUICollection.add { label: 'And the last', view: tag3View }

tabNav = new UI.View.NavigationList
  collection: tabUICollection

tabContent = new UI.View.TabContentList
  collection: tabUICollection

Radio.channel('app').trigger 'show:view:area1', tabNav
Radio.channel('app').trigger 'show:view:area2', tabContent

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.