Class: Tiler::Widgets::List
- Inherits:
-
Tiler::Widget
- Object
- Tiler::Widget
- Tiler::Widgets::List
- Defined in:
- lib/tiler/widgets/list.rb
Instance Attribute Summary
Attributes inherited from Tiler::Widget
Class Method Summary collapse
Methods inherited from Tiler::Widget
#data, #empty?, example_config, example_payload, #initialize, #label, #partial, #query_class, supports_color_config?, supports_palette_config?
Constructor Details
This class inherits a constructor from Tiler::Widget
Class Method Details
.example_preview ⇒ Object
42 43 44 45 46 47 48 |
# File 'lib/tiler/widgets/list.rb', line 42 def self.example_preview { "items" => [ { "label" => "ok", "value" => 47 }, { "label" => "warn", "value" => 12 }, { "label" => "error", "value" => 3 } ] } end |