Class: Dill::AutoTable

Inherits:
BaseTable show all
Defined in:
lib/dill/widgets/auto_table.rb

Defined Under Namespace

Classes: Row

Instance Method Summary collapse

Methods inherited from BaseTable

#to_table

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

#footersObject

don’t include footer in to_table, because footer column configuration is very often different from the headers & values.



6
7
8
# File 'lib/dill/widgets/auto_table.rb', line 6

def footers
  @footers ||= root.all(footer_selector).map { |n| Widget.new(n).text }
end