Class: Nitron::TableViewController
Defined Under Namespace
Classes: ArrayDataSource, CoreDataSource
Class Method Summary
collapse
#close
#_dispatch, #dealloc, included
#dealloc, #model, #model=
Class Method Details
.collection(&block) ⇒ Object
3
4
5
|
# File 'lib/nitron/table_view_controller.rb', line 3
def self.collection(&block)
options[:collection] = block
end
|
.group_by(name, opts = {}) ⇒ Object
7
8
9
10
|
# File 'lib/nitron/table_view_controller.rb', line 7
def self.group_by(name, opts={})
options[:groupBy] = name.to_s
options[:groupIndex] = opts[:index] || false
end
|
.options ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/nitron/table_view_controller.rb', line 12
def self.options
@options ||= {
collection: lambda { [] },
groupBy: nil,
groupIndex: false,
}
end
|