Class: Railswatch::Widgets::Table
- Inherits:
-
Base
- Object
- Base
- Railswatch::Widgets::Table
show all
- Defined in:
- lib/railswatch/widgets/table.rb
Instance Attribute Summary
Attributes inherited from Base
#datasource
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#auto_update_interval ⇒ Object
22
23
24
|
# File 'lib/railswatch/widgets/table.rb', line 22
def auto_update_interval
nil
end
|
#content_partial_path ⇒ Object
34
35
36
|
# File 'lib/railswatch/widgets/table.rb', line 34
def content_partial_path
raise NotImplementedError, 'Subclasses must define content_partial_path'
end
|
#data ⇒ Object
10
11
12
|
# File 'lib/railswatch/widgets/table.rb', line 10
def data
raise NotImplementedError
end
|
#empty_message ⇒ Object
14
15
16
|
# File 'lib/railswatch/widgets/table.rb', line 14
def empty_message
'No data to display.'
end
|
#show_export? ⇒ Boolean
18
19
20
|
# File 'lib/railswatch/widgets/table.rb', line 18
def show_export?
true
end
|
#subtitle ⇒ Object
6
7
8
|
# File 'lib/railswatch/widgets/table.rb', line 6
def subtitle
raise NotImplementedError
end
|
#table_classes ⇒ Object
30
31
32
|
# File 'lib/railswatch/widgets/table.rb', line 30
def table_classes
'table is-fullwidth is-hoverable'
end
|
#table_id ⇒ Object
26
27
28
|
# File 'lib/railswatch/widgets/table.rb', line 26
def table_id
nil
end
|
#to_partial_path ⇒ Object
38
39
40
|
# File 'lib/railswatch/widgets/table.rb', line 38
def to_partial_path
'railswatch/railswatch/table'
end
|