paulwong

          angular-smarty

          angular-smarty 是一個(gè)基于 AngularJS 實(shí)現(xiàn)的自動完成的 UI 實(shí)現(xiàn)。

          使用方法:
          <html>
          <head>
              <title>angular-smarty demo</title>
              <link rel="stylesheet" type="text/css" href="smarty.css"></link>
          </head>
          <body ng-controller="SmartyController">
              <div class="container-main">
                  <h1>angular-smarty demo</h1>
                  <div class="container-autocomplete">
                      <input type="text" smarty-input select="setSelected(x)"
                          index
          ="selected" list-items="suggestions" close="suggestionPicked()"
                          selection-made
          ="selectionMade" ng-model="prefix"></input>
                      <div smarty-suggestions-box></div>
                      <input type="text" focus-me focus-when="{{selectionMade}}"></input>
                  </div>
              </div>
          </body>
          <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
          <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.js"></script>
          <script type="text/javascript" src="smarty-config.js"></script>
          <script type="text/javascript" src="smarty.js"></script>
          <script type="text/javascript">
              $(
          function() {
                  angular.bootstrap(angular.element(
          "body"), ["angular-smarty"]);
              });
          </script>
          </html>

          https://github.com/thumbtack/angular-smarty

          posted on 2014-06-19 09:01 paulwong 閱讀(575) 評論(0)  編輯  收藏 所屬分類: ANGULARJS

          主站蜘蛛池模板: 太湖县| 姚安县| 综艺| 昭觉县| 中方县| 朝阳县| 西藏| 九龙坡区| 辽宁省| 乌拉特后旗| 会昌县| 六盘水市| 潞城市| 旬邑县| 收藏| 日土县| 八宿县| 阳原县| 唐山市| 西丰县| 东至县| 新沂市| 鄂尔多斯市| 大连市| 环江| 江都市| 金平| 文山县| 汉川市| 朝阳县| 靖西县| 惠安县| 吕梁市| 廉江市| 德钦县| 邢台县| 阿克| 苏尼特左旗| 宜黄县| 仁寿县| 呼和浩特市|