0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

datepickerについて

Last updated at Posted at 2019-10-01

結局、どのdatepickerが一番使い勝手がよいのか

flatpickr.js参考サイト

https://metrograph.jp/js-flatpickr/
https://tr.you84815.space/flatpickr/examples.html

##公式document
https://flatpickr.js.org/options/

date picker

エラー

datepicker.jsの注意点

1.呼び出す順番

<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'legacy.js' %>
<%= javascript_include_tag 'picker.js' %>
<%= javascript_include_tag 'picker.date.js' %>
<%= javascript_include_tag 'picker.time.js' %>

2.assets.rb のplicompileを指定

Rails.application.config.assets.precompile += %w(footer classic.css classic.date.css classic.time.css legacy.js picker.js picker.date.js picker.time.js)

3.application.jsで//= require_tree .の削除

//= require_tree . <-削除

日本語化など

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?