Class: Records::Sidebar
- Inherits:
-
Components::Base
- Object
- Components::Base
- Records::Sidebar
- Includes:
- Phlex::Rails::Helpers::TurboFrameTag
- Defined in:
- app/components/databasium/records/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.
6 7 |
# File 'app/components/databasium/records/sidebar.rb', line 6 def initialize end |
Instance Method Details
#view_template ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/components/databasium/records/sidebar.rb', line 9 def view_template div(class: "flex flex-col w-full") do render Components::Databasium::Forms::Search.new( url: databasium., turbo_frame: "results", placeholder: "Search for a table" ) turbo_frame_tag("results", src: databasium.) do p(class: "mt-2 animate-pulse") { "Loading tables..." } end end end |