Sha256: 66645b49d966c1191d796405ee5551ab4f7bdd76947f64db485bd20d51af41f7

Contents?: true

Size: 835 Bytes

Versions: 28

Compression:

Stored size: 835 Bytes

Contents

class Marty::Reporting < Netzke::Base
  def configure(c)
    super
    c.items = [
               :report_select,
               :report_form,
              ]
  end

  js_configure do |c|
    c.header   = false
    c.layout   = :border
    c.defaults = {body_style: 'padding:0px'}

    c.select_report = <<-JS
    function() {
       // this.netzkeGetComponent('report_form').netzkeLoad({});
       // FIXME: NetzkeReload() doesn't work when performed on
       // ReportForm. So, reload all of Reporting.
       this.netzkeReload();
    }
    JS
  end

  component :report_form do |c|
    c.klass  = Marty::ReportForm
    c.flex   = 1
    c.region = :center
  end

  component :report_select do |c|
    c.klass  = Marty::ReportSelect
    c.split  = true
    c.region = :west
    c.width  = 325
  end
end

Reporting = Marty::Reporting

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
marty-0.5.41 app/components/marty/reporting.rb
marty-0.5.40 app/components/marty/reporting.rb
marty-0.5.39 app/components/marty/reporting.rb
marty-0.5.38 app/components/marty/reporting.rb
marty-0.5.36 app/components/marty/reporting.rb
marty-0.5.35 app/components/marty/reporting.rb
marty-0.5.34 app/components/marty/reporting.rb
marty-0.5.33 app/components/marty/reporting.rb
marty-0.5.32 app/components/marty/reporting.rb
marty-0.5.31 app/components/marty/reporting.rb
marty-0.5.30 app/components/marty/reporting.rb
marty-0.5.29 app/components/marty/reporting.rb
marty-0.5.28 app/components/marty/reporting.rb
marty-0.5.27 app/components/marty/reporting.rb
marty-0.5.26 app/components/marty/reporting.rb
marty-0.5.25 app/components/marty/reporting.rb
marty-0.5.24 app/components/marty/reporting.rb
marty-0.5.23 app/components/marty/reporting.rb
marty-0.5.21 app/components/marty/reporting.rb
marty-0.5.20 app/components/marty/reporting.rb