Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Bind models and views using Backbone.stickit #18

Closed
trabianmatt opened this issue Jan 16, 2013 · 2 comments
Closed

Bind models and views using Backbone.stickit #18

trabianmatt opened this issue Jan 16, 2013 · 2 comments
Assignees

Comments

@trabianmatt
Copy link
Member

Backbone.stitckit is a library for binding models to views:

class SampleView extends Backbone.View

  # Any time the `name` attribute of @model is updated, the text of the element matching .name will be updated as well.
  bindings:
    '.name': 'name'

It would be helpful to have this integrated with titanium-backbone.

@ghost ghost assigned trabianmatt Jan 16, 2013
@trabianmatt
Copy link
Member Author

Simple one-way (model to view) binding on Labels and Buttons is working. Next up is text fields and other editable fields:

Add two-way support for editors:

  • TextField
  • TextAreas
  • Switch
  • SearchBar
  • Slider
  • Picker (may create a separate issue for this since we haven't provided a good abstraction for Pickers yet)

@trabianmatt
Copy link
Member Author

I posted a couple of related pull requests to backbone.stickit:

nytimes/backbone.stickit#54
nytimes/backbone.stickit#55

Hopefully we can get some form of those merged into master so we don't have to maintain a separate fork.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant