paulwong

          angular-smarty

          angular-smarty 是一個基于 AngularJS 實現的自動完成的 UI 實現。

          使用方法:
          <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 閱讀(573) 評論(0)  編輯  收藏 所屬分類: ANGULARJS

          主站蜘蛛池模板: 崇仁县| 伽师县| 绥棱县| 南开区| 都匀市| 新乡市| 民勤县| 河津市| 云梦县| 信宜市| 上高县| 蒙山县| 浦城县| 紫金县| 佳木斯市| 南开区| 大英县| 奉新县| 德庆县| 阳泉市| 昆明市| 太湖县| 渭南市| 北票市| 普格县| 固安县| 九江市| 左贡县| 明光市| 宁陵县| 嘉峪关市| 阿鲁科尔沁旗| 临汾市| 鄂托克前旗| 南华县| 宜宾县| 桂阳县| 枝江市| 临武县| 绍兴县| 涞源县|