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