Materialize-datepicker

提供:Dev Guides
移動先:案内検索

マテリアライズ-DatePicker

次の例は、DatePickerコントロールの具体化を示しています。

日付ピッカーを具体化する

<html>
   <head>
      <title>The Materialize Range Example</title>
      <meta name = "viewport" content = "width = device-width, initial-scale = 1">
      <link rel = "stylesheet"
         href = "https://fonts.googleapis.com/icon?family=Material+Icons">
      <link rel = "stylesheet"
         href = "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
      <script type = "text/javascript"
         src = "https://code.jquery.com/jquery-2.1.1.min.js"></script>
      <script src = "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js">
      </script>
   </head>

   <body class = "container">
      <div class = "row">
         <form class = "col s12">
            <div class = "row">
               <label>Materialize DatePicker</label>
               <input type = "date" class = "datepicker"/>
            </div>
         </form>
      </div>
   </body>
</html>

結果

結果を確認します。