Skip to content

Instantly share code, notes, and snippets.

@gmoeck
Created June 18, 2011 18:16
Show Gist options
  • Save gmoeck/1033361 to your computer and use it in GitHub Desktop.
Save gmoeck/1033361 to your computer and use it in GitHub Desktop.
list: SC.ScrollView.extend({
layout: {height:190},
contentView: SC.TemplateCollectionView.extend({
contentBinding: 'TW.homePageTabsController.contentRecentSearches',
itemView: SC.TemplateView.extend(TW.ItemViewSelectionSupport, {
templateName: 'home_page_tabs_recent_search_item',
classNames: ['simple-link-row'],
performAction: function() {
TW.statechart.sendEvent('performRecentSearch', this.get('content'));
}
}),
tagName: 'div'
}),
isVisibleBinding: 'TW.homePageTabsController.hasRecentSearches'
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment