Skip to content

Instantly share code, notes, and snippets.

@pschyska
Created March 24, 2012 18:12
Show Gist options
  • Save pschyska/2185782 to your computer and use it in GitHub Desktop.
Save pschyska/2185782 to your computer and use it in GitHub Desktop.
js_property :items, [
{
xtype: 'panel',
border: 0,
maintainFlex: true,
activeItem: 0,
layout: {
align: 'stretch',
type: 'vbox'
},
bodyStyle: 'background: #DFE8F6;\n',
flex: 1,
items: [
{
xtype: 'panel',
margin: '0 0 3 0',
style: 'background: transparent;\n',
bodyStyle: 'background: #f6f6f6;\nborder: 1px solid #cccccc;\n\n',
items: section_buttons
},
{
class_name: 'Cumulus::Basepack::LazyCardPanel',
flex: 1,
items: [
{
height: 400,
preventHeader: true,
layout: {
type: 'card',
},
items: [ :application_explorer.component ],
border: 0,
}
]
}
]
}
]
component :application_explorer do
{
class_name: 'Cumulus::Basepack::ApplicationExplorer',
iconCls: 'icon-applications-small',
title: 'Applications',
border: false
}
end
component :application_inspector do
{
class_name: 'Cumulus::Basepack::ApplicationInspector',
iconCls: 'icon-applications-small',
title: 'Applications',
lazy_loading: true,
border: false
}
end
class Cumulus::Basepack::LazyCardPanel < Netzke::Basepack::Panel
js_property :layout, 'card'
js_method :add_card, <<-JS
function() {
console.log('adding card');
}
JS
def initialize
raise 'lol'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment