Class: TaoUi::Components::ConfirmPopoverComponent
- Inherits:
-
PopoverComponent
- Object
- TaoOnRails::Components::Base
- PopoverComponent
- TaoUi::Components::ConfirmPopoverComponent
- Defined in:
- lib/tao_ui/components/confirm_popover_component.rb
Instance Attribute Summary collapse
-
#cancel_text ⇒ Object
readonly
Returns the value of attribute cancel_text.
-
#confirm_text ⇒ Object
readonly
Returns the value of attribute confirm_text.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(view, options) ⇒ ConfirmPopoverComponent
constructor
A new instance of ConfirmPopoverComponent.
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, super view, @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_text ⇒ Object (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_text ⇒ Object (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_name ⇒ Object
13 14 15 |
# File 'lib/tao_ui/components/confirm_popover_component.rb', line 13 def self.component_name :confirm_popover end |