Class: Opine::Table

Inherits:
Widget show all
Defined in:
lib/opine/widgets/table.rb

Direct Known Subclasses

Native::Table

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Widget

#initialize

Constructor Details

This class inherits a constructor from Opine::Widget

Instance Attribute Details

#columnsObject

Returns the value of attribute columns.



2
3
4
# File 'lib/opine/widgets/table.rb', line 2

def columns
  @columns
end

#nativeObject

Returns the value of attribute native.



2
3
4
# File 'lib/opine/widgets/table.rb', line 2

def native
  @native
end

#parentObject

Returns the value of attribute parent.



2
3
4
# File 'lib/opine/widgets/table.rb', line 2

def parent
  @parent
end

#resourcesObject

Returns the value of attribute resources.



2
3
4
# File 'lib/opine/widgets/table.rb', line 2

def resources
  @resources
end

Instance Method Details

#on_select_row(&block) ⇒ Object



4
5
6
# File 'lib/opine/widgets/table.rb', line 4

def on_select_row(&block)
  hooks[:on_select_row] = block
end