Class: Trackplot::Components::Legend
- Defined in:
- lib/trackplot/components/legend.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Trackplot::Components::Base
Instance Method Details
#to_config ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/trackplot/components/legend.rb', line 4 def to_config { type: "legend", position: [:position] || "bottom", clickable: .fetch(:clickable, true) }.compact end |