Class: Schemas::Index
- Inherits:
-
Views::Base
- Object
- Views::Base
- Schemas::Index
- Includes:
- Phlex::Rails::Helpers::ContentFor, Phlex::Rails::Helpers::LinkTo
- Defined in:
- app/views/databasium/schemas/index.rb
Instance Method Summary collapse
-
#initialize(schema:, models:, pagy:, model:, layers:) ⇒ Index
constructor
A new instance of Index.
- #view_template ⇒ Object
Constructor Details
#initialize(schema:, models:, pagy:, model:, layers:) ⇒ Index
Returns a new instance of Index.
9 10 11 12 13 14 15 |
# File 'app/views/databasium/schemas/index.rb', line 9 def initialize(schema:, models:, pagy:, model:, layers:) @schema = schema @models = models @pagy = pagy @model = model @layers = layers end |
Instance Method Details
#view_template ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'app/views/databasium/schemas/index.rb', line 17 def view_template content_for(:title) { "Schema" } content_for(:sidebar) { render Components::Databasium::Schemas::Sidebar.new } content_for(:header_actions) do render Components::Databasium::Schemas::HeaderActions.new(model: @model, layers: @layers) end div(class: "w-full h-full p-4") { render_schema } end |