Class: Protos::Command

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/command.rb,
lib/protos/command/item.rb,
lib/protos/command/list.rb,
lib/protos/command/empty.rb,
lib/protos/command/group.rb,
lib/protos/command/input.rb,
lib/protos/command/title.rb,
lib/protos/command/trigger.rb

Defined Under Namespace

Classes: Empty, Group, Input, Item, List, Title, Trigger

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#close_buttonObject



30
# File 'lib/protos/command.rb', line 30

def close_button(...) = render Modal::CloseButton.new(...)

#dialogObject



28
# File 'lib/protos/command.rb', line 28

def dialog(...) = render Modal::Dialog.new(...)

#emptyObject



38
# File 'lib/protos/command.rb', line 38

def empty(...) = render Command::Empty.new(...)

#groupObject



34
# File 'lib/protos/command.rb', line 34

def group(...) = render Command::Group.new(...)

#inputObject



22
# File 'lib/protos/command.rb', line 22

def input(...) = render Command::Input.new(...)

#itemObject



36
# File 'lib/protos/command.rb', line 36

def item(...) = render Command::Item.new(...)

#listObject



24
# File 'lib/protos/command.rb', line 24

def list(...) = render Command::List.new(...)

#titleObject



32
# File 'lib/protos/command.rb', line 32

def title(...) = render Command::Title.new(...)

#triggerObject



26
# File 'lib/protos/command.rb', line 26

def trigger(...) = render Command::Trigger.new(...)

#view_templateObject



18
19
20
# File 'lib/protos/command.rb', line 18

def view_template(&)
  div(**attrs, &)
end