Class: Migrations::Sidebar
- Inherits:
-
Components::Base
- Object
- Components::Base
- Migrations::Sidebar
- Includes:
- Phlex::Rails::Helpers::ButtonTo, Phlex::Rails::Helpers::FormWith, Phlex::Rails::Helpers::LinkTo, Phlex::Rails::Helpers::TurboFrameTag
- Defined in:
- app/components/databasium/migrations/sidebar.rb
Instance Method Summary collapse
-
#initialize ⇒ Sidebar
constructor
A new instance of Sidebar.
- #view_template ⇒ Object
Constructor Details
#initialize ⇒ Sidebar
Returns a new instance of Sidebar.
11 12 |
# File 'app/components/databasium/migrations/sidebar.rb', line 11 def initialize end |
Instance Method Details
#view_template ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app/components/databasium/migrations/sidebar.rb', line 14 def view_template div(class: "flex flex-col gap-2", data: { controller: "search" }) do render Components::Databasium::Forms::Search.new( url: databasium., turbo_frame: "results", placeholder: "Search for a migration" ) turbo_frame_tag("results", src: databasium.) do p(class: "mt-2 animate-pulse") { "Loading migrations..." } end end end |