Class: Dill::BaseTable

Inherits:
Widget
  • Object
show all
Defined in:
lib/dill/widgets/base_table.rb

Direct Known Subclasses

AutoTable, Table

Instance Method Summary collapse

Methods inherited from Widget

#absent?, action, #classes, #click, #diff, filter, filter?, find_all_in, find_in, #gone?, #has_action?, #id, #initialize, #inspect, #present?, present_in?, root, #root, selector, #text, #to_cell, #to_s, #value, widget_delegator

Methods included from Widgets::DSL

#form, #list, #widget

Methods included from WidgetParts::Container

#has_no_widget?, #has_widget?, #widget, #widgets

Methods included from WidgetParts::Struct

included

Constructor Details

This class inherits a constructor from Dill::Widget

Instance Method Details

#to_tableObject



3
4
5
6
7
# File 'lib/dill/widgets/base_table.rb', line 3

def to_table
  ensure_table_loaded

  headers.any? ? [headers, *values] : values
end