Skip to content

Instantly share code, notes, and snippets.

@brian428
Created August 19, 2012 19:08
Show Gist options
  • Save brian428/3397093 to your computer and use it in GitHub Desktop.
Save brian428/3397093 to your computer and use it in GitHub Desktop.
Viewport.coffee
Ext.define( "ExtCoffeeTodo.view.Viewport",
extend: "Ext.container.Viewport"
requires: [ "ExtCoffeeTodo.view.TodoPanel" ]
initComponent: ->
# Copy configuration onto this Component.
# This can be expanded to allow great flexibility in how components are
# configured (by passing in dynamic configuration objects).
Ext.applyIf( @,
items: [
xtype: "container"
layout:
type: "hbox"
pack: "center"
padding: 10
items: [
xtype: "extcoffeetodo-view-todoPanel"
width: 650
]
]
)
@callParent( arguments )
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment