Class: NitroKit::Datepicker

Inherits:
Component
  • Object
show all
Defined in:
app/components/nitro_kit/datepicker.rb

Instance Attribute Summary

Attributes inherited from Component

#attrs

Instance Method Summary collapse

Methods inherited from Component

#builder, from_template, #initialize

Constructor Details

This class inherits a constructor from NitroKit::Component

Instance Method Details

#view_templateObject



5
6
7
# File 'app/components/nitro_kit/datepicker.rb', line 5

def view_template
  render(Input.new(type: "text", **attrs, data: { controller: "nk--datepicker" }))
end