Created
October 10, 2008 20:13
-
-
Save ttdonovan/16149 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= text_field_view :first_name_id, | |
| :hint => "First Name", | |
| :enabled => true, | |
| :bind => { :value => 'CDFleet.objectController.fname' } | |
| %> | |
| <% scroll_view :record_list_scroll_view, :height => 200, :width => 300 do %> | |
| <%= list_view :record_list, | |
| :content_value_key => 'displayString', | |
| :bind => { | |
| :content => "CDFleet.objectsController.arrangedObjects", | |
| :selection => "CDFleet.objectsController.selection" } %> | |
| <% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var objectCol = CDFleet.CDObject.collection(); | |
| CDFleet.objectsController.set('content', objectCol); | |
| objectCol.refresh(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CDFleet.objectController = SC.Object.create( | |
| /** @scope CDFleet.objectController */ { | |
| contentBinding: "CDFleet.objectsController.selection" | |
| }) ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CDFleet.objectsController = SC.CollectionController.create( | |
| /** @scope CDFleet.objectListController */ { | |
| // TODO: Add your own code here. | |
| }) ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment