Class: Railswatch::Widgets::Table

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from Railswatch::Widgets::Base

Instance Method Details

#auto_update_intervalObject



22
23
24
# File 'lib/railswatch/widgets/table.rb', line 22

def auto_update_interval
  nil
end

#content_partial_pathObject

Raises:

  • (NotImplementedError)


34
35
36
# File 'lib/railswatch/widgets/table.rb', line 34

def content_partial_path
  raise NotImplementedError, 'Subclasses must define content_partial_path'
end

#dataObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/railswatch/widgets/table.rb', line 10

def data
  raise NotImplementedError
end

#empty_messageObject



14
15
16
# File 'lib/railswatch/widgets/table.rb', line 14

def empty_message
  'No data to display.'
end

#show_export?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/railswatch/widgets/table.rb', line 18

def show_export?
  true
end

#subtitleObject

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/railswatch/widgets/table.rb', line 6

def subtitle
  raise NotImplementedError
end

#table_classesObject



30
31
32
# File 'lib/railswatch/widgets/table.rb', line 30

def table_classes
  'table is-fullwidth is-hoverable'
end

#table_idObject



26
27
28
# File 'lib/railswatch/widgets/table.rb', line 26

def table_id
  nil
end

#to_partial_pathObject



38
39
40
# File 'lib/railswatch/widgets/table.rb', line 38

def to_partial_path
  'railswatch/railswatch/table'
end