class TaoUi::Components::ConfirmPopoverComponent
Attributes
cancel_text[R]
confirm_text[R]
Public Class Methods
component_name()
click to toggle source
# File lib/tao_ui/components/confirm_popover_component.rb, line 13 def self.component_name :confirm_popover end
new(view, options)
click to toggle source
Calls superclass method
# 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
Private Instance Methods
default_options()
click to toggle source
Calls superclass method
# File lib/tao_ui/components/confirm_popover_component.rb, line 19 def default_options merge_options super, {class: 'tao-confirm-popover'} end