Class: Matestack::Ui::Bootstrap::Components::Alert
- Inherits:
-
BaseVueJsComponent
- Object
- VueJsComponent
- BaseVueJsComponent
- Matestack::Ui::Bootstrap::Components::Alert
- Defined in:
- lib/matestack/ui/bootstrap/components/alert.rb
Instance Method Summary collapse
Instance Method Details
#response ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/matestack/ui/bootstrap/components/alert.rb', line 9 def response div alert_attributes do heading context.title, size: (context.title_size || 4), class: 'alert-heading' if context.title plain context.text if context.text yield if block_given? bs_close dismiss: "alert" if context.dismissible end end |