Polymer-paper-progress

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

ポリマー-紙の進歩

進捗バーは、完了したタスクの割合を決定するために使用されます。 タスクを完了するのに必要な時間について、ユーザーに簡単なアイデアを提供します。 中間進行状況を表示するために、2次進行状況も使用できます。 作業状態のディレクトリで進行状況を取得するには、コマンドプロンプトで次のコマンドを実行する必要があります。

bower install --save PolymerElements/paper-progress

インデックスファイルは次のようになります。

<!doctype html>
<html>
   <head>
      <link rel = 'import' href = 'my-appl'>
   </head>

   <body>
      <my-app></my-app>
   </body>
</html>

my-appleファイルは次のようになります-

<link rel = 'import' href = 'bower_components/polymer/polymerl'>
<link rel = "import" href = "bower_components/paper-progress/paper-progressl">

<dom-module id = 'my-app'>
   <template>
      <style>
         paper-progress {
            display: block;
            width: 30%;
            margin: 20px 0;
         }
      </style>

      <h3>Paper-Progress Example</h3>
      <p>70% completed</p>
      <paper-progress value = "70"></paper-progress>
      <p>45% completed</p>
      <paper-progress value = "45"></paper-progress>
      <p>20% completed</p>
      <paper-progress value = "20"></paper-progress>
   </template>

   <script>
      Polymer ({
         is: 'my-app', ready: function() {
            this.async(function() {
            });
         }
      });
   </script>
</dom-module>

出力

Polymerサーバーを更新すると、以下が出力されます。

Paper-Progress