Class: Schemas::Sidebar
- Inherits:
-
Components::Base
- Object
- Components::Base
- Schemas::Sidebar
- Includes:
- Phlex::Rails::Helpers::TurboFrameTag
- Defined in:
- app/components/databasium/schemas/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.
8 9 |
# File 'app/components/databasium/schemas/sidebar.rb', line 8 def initialize end |
Instance Method Details
#view_template ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/components/databasium/schemas/sidebar.rb', line 11 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 model" ) turbo_frame_tag("results", src: databasium.) do p(class: "mt-2 animate-pulse") { "Loading models..." } end end end |