Skip to content

Instantly share code, notes, and snippets.

@jamespeerless
Created February 4, 2014 21:49
Show Gist options
  • Save jamespeerless/8813045 to your computer and use it in GitHub Desktop.
Save jamespeerless/8813045 to your computer and use it in GitHub Desktop.
@Maskme.module "CardApp.Transactions", (Transactions, App, Backbone, Marionette, $, _) ->
class Transactions.Layout extends App.Views.Layout
template: "card/transactions/layout"
regions:
transactionsRegion: "#card-transactions-region"
class Transactions.Transactions extends App.Views.CollectionView
itemView: Transactions.Transaction
emptyView: Transactions.Empty
tagName: "ul"
className: "topcoat-list list actions"
collectionEvents:
"change":"render"
class Transactions.Transaction extends App.Views.ItemView
template: "card/transactions/transaction"
tagName: "li"
className: "topcoat-list__item"
class Transactions.Empty extends App.Views.ItemView
template: "card/transactions/empty"
tagName: "li"
className: "topcoat-list__item"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment