Sha256: 4e164cbfe6708ff92cb7d75c36bb67fc66003489af5fdd1c10c421e29c669a89

Contents?: true

Size: 599 Bytes

Versions: 20

Compression:

Stored size: 599 Bytes

Contents



require 'json'
require 'omf-web/tab/tabbed_widgets/tabbed_widgets_service'
require 'omf-web/widget/abstract_widget'

module OMF::Web::Tab::Graph
  
  class GraphService < OMF::Web::Tab::TabbedWidgets::TabbedWidgetsService
    
    def initialize(tab_id, opts)
      opts[:widgets] ||= OMF::Web::Widget::AbstractWidget.registered_widgets().select do |key, descr|
        (descr[:type] || '_').to_sym == :data
      end.sort do |a, b|
        a[0].to_s <=> b[0].to_s # sorting by ids
      end.collect do |name, descr| 
        name
      end
      super
    end
    
  end # GraphService
    
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
omf_web-1.2.9 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-1.2.8 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-1.2.7 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-1.2.6 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-1.2.5 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-1.2.4 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-1.2.3 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-1.2.2 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-1.2.1 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-1.2.0 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-1.0.0 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-0.9.9 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-0.9.8 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-0.9.7 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-0.9.6 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-0.9.5 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-0.9.4 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-0.9.3 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-0.9.1 lib/omf-web/UNUSED/tab/graph/graph_service.rb
omf_web-0.9 lib/omf-web/UNUSED/tab/graph/graph_service.rb