Class: Potty::Widgets::DisabledItem

Inherits:
ListItem
  • Object
show all
Defined in:
lib/potty/widgets/list_item.rb

Overview

Disabled/greyed item

Instance Attribute Summary

Attributes inherited from ListItem

#color, #text, #value

Instance Method Summary collapse

Methods inherited from ListItem

#activate, #display_text, #handle_key, #initialize, #render_custom

Constructor Details

This class inherits a constructor from Potty::Widgets::ListItem

Instance Method Details

#disabled?Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/potty/widgets/list_item.rb', line 57

def disabled?
  true
end