Skip to content

Commit

Permalink
adjust calendar doc (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonpires authored Sep 13, 2024
1 parent 14d5b30 commit 00f6838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/docs/calendar_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def view_template
render Docs::VisualCodeExample.new(title: "Connect to input", context: self) do
<<~RUBY
div(class: 'space-y-4') do
Input(type: 'string', placeholder: "Select a date", class: 'rounded-md border shadow', id: 'date', data_controller: 'input')
Input(type: 'string', placeholder: "Select a date", class: 'rounded-md border shadow', id: 'date', data_controller: 'rbui--calendar-input')
Calendar(input_id: '#date', class: 'rounded-md border shadow')
end
RUBY
Expand All @@ -19,7 +19,7 @@ def view_template
render Docs::VisualCodeExample.new(title: "Format date", description: "Format dates with date-fns", context: self) do
<<~RUBY
div(class: 'space-y-4') do
Input(type: 'string', placeholder: "Select a date", class: 'rounded-md border shadow', id: 'formatted-date', data_controller: 'input')
Input(type: 'string', placeholder: "Select a date", class: 'rounded-md border shadow', id: 'formatted-date', data_controller: 'rbui--calendar-input')
Calendar(input_id: '#formatted-date', date_format: 'PPPP', class: 'rounded-md border shadow')
end
RUBY
Expand Down

0 comments on commit 00f6838

Please sign in to comment.