Class: TaoUi::Components::ConfirmPopoverComponent

Inherits:
PopoverComponent
  • Object
show all
Defined in:
lib/tao_ui/components/confirm_popover_component.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(view, options) ⇒ ConfirmPopoverComponent

Returns a new instance of ConfirmPopoverComponent.



7
8
9
10
11
# File 'lib/tao_ui/components/confirm_popover_component.rb', line 7

def initialize view, options
  super view, options
  @confirm_text = @options[:confirm_text] || I18n.t('tao_ui.components.dialog.confirm')
  @cancel_text = @options[:cancel_text] || I18n.t('tao_ui.components.dialog.cancel')
end

Instance Attribute Details

#cancel_textObject (readonly)

Returns the value of attribute cancel_text.



5
6
7
# File 'lib/tao_ui/components/confirm_popover_component.rb', line 5

def cancel_text
  @cancel_text
end

#confirm_textObject (readonly)

Returns the value of attribute confirm_text.



5
6
7
# File 'lib/tao_ui/components/confirm_popover_component.rb', line 5

def confirm_text
  @confirm_text
end

Class Method Details

.component_nameObject



13
14
15
# File 'lib/tao_ui/components/confirm_popover_component.rb', line 13

def self.component_name
  :confirm_popover
end