Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FeatureSet < Netzke::Base
- include Netzke::Basepack::DataAccessor
- js_base_class "Ext.panel.Panel"
- js_mixin :feature_set, :add_panel
- js_property :layout, 'accordion'
- js_property :width, 300
- js_property :height, 500
- # js_property :component_load_mask, {:msg => null} # due to a probable bug in Ext's Accordion Layout (mask message is mis-layed-out), disabling mask message
- def js_config #:nodoc:
- super.merge({
- :animate => true,
- :model => config[:model],
- :pri => data_class.primary_key
- })
- end
- endpoint :get_features do |params|
- features = data_class.all()
- features.map do |f|
- {:add_panel => f.name}
- end
- end
- end
Add Comment
Please, Sign In to add comment