PageRenderTime 45ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/1.4/docs/html/demo/resizable/plugin-proxy.html

https://github.com/kissyteam/kissyteam.github.com
HTML | 259 lines | 210 code | 22 blank | 27 comment | 0 complexity | 647869e6d6fca00d71d105b14b2bbaff MD5 | raw file
Possible License(s): Apache-2.0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta name="viewport"
  6. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  7. <meta name="data-spm" content="1" data-spm-protocol="i" />
  8. <title>resizable.plugin.Proxy 使用示例 &mdash; KISSY v1.4 Documentation</title>
  9. <link rel="stylesheet" href="//g.alicdn.com/kissy/k/1.4.7/css/dpl/base-min.css"/>
  10. <link rel="stylesheet" href="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/pygments.css" type="text/css" />
  11. <link rel="shortcut icon" href="http://a.tbcdn.cn/s/kissy/favicon.ico" type="image/x-icon" />
  12. <script>
  13. var DOCUMENTATION_OPTIONS = {
  14. URL_ROOT: '../../',
  15. VERSION: '',
  16. COLLAPSE_INDEX: false,
  17. FILE_SUFFIX: '.html',
  18. HAS_SOURCE: true
  19. };
  20. </script>
  21. <script type="text/javascript" src="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/??jquery.js,underscore.js,doctools.js,searchtools.js"></script>
  22. <script>
  23. var _gaq = _gaq || [];
  24. _gaq.push(['_setAccount', 'UA-31470541-1']);
  25. _gaq.push(['_trackPageview']);
  26. (function() {
  27. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  28. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  29. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  30. })();
  31. </script>
  32. <link rel="stylesheet" href="../../_static/kissy.css"/>
  33. <link rel="stylesheet" href="../../_static/prettify.css"/>
  34. <link rel="stylesheet" href="../../_static/forkit.css"/>
  35. <link rel="stylesheet" href="../../_static/bootstrap.css"/>
  36. <script src="//g.alicdn.com/kissy/k/1.4.7/seed.js"></script>
  37. </head>
  38. <body data-spy="scroll" data-target=".bs-docs-sidebar">
  39. <nav id="sidebar">
  40. <header>
  41. <a href="/" >
  42. <img src="http://gtms01.alicdn.com/tps/i1/T1MVbxFoRcXXchhRni-175-68.png" alt="" />
  43. </a>
  44. </header>
  45. <div class="col-sub"><ul class="s-box api-toctree">
  46. <h4 class="s-box-hd">Seed</h4>
  47. <ul class="s-box-bd">
  48. <!--<li><a href="../features/index.html">features</a></li>-->
  49. <li><a href="../lang/index.html">lang</a></li>
  50. <li><a href="../loader/index.html">loader</a></li>
  51. <!--<li><a href="../ua/index.html">ua</a></li>-->
  52. </ul>
  53. </ul>
  54. <ul class="s-box component-toctree">
  55. <h4 class="s-box-hd">Core</h4>
  56. <ul class="s-box-bd">
  57. <li><a href="../anim/index.html">anim</a></li>
  58. <li><a href="../base/index.html">base</a></li>
  59. <!--<li><a href="../cookie/index.html">cookie</a></li>-->
  60. <!--<li><a href="../dom/index.html">dom</a></li>-->
  61. <!--<li><a href="../event/index.html">event</a></li>-->
  62. <!--<li><a href="../io/index.html">io</a></li>-->
  63. <!--<li><a href="../json/index.html">json</a></li>-->
  64. <!--<li><a href="../node/index.html">node</a></li>-->
  65. <li><a href="../path/index.html">path</a></li>
  66. <li><a href="../promise/index.html">promise</a></li>
  67. <li><a href="../uri/index.html">uri</a></li>
  68. </ul>
  69. </ul>
  70. <ul class="s-box component-toctree">
  71. <h4 class="s-box-hd">Infrastructure</h4>
  72. <ul class="s-box-bd">
  73. <!--<li><a href="../component/index.html">component</a></li>-->
  74. <li><a href="../mvc/index.html">mvc</a></li>
  75. <li><a href="../xtemplate/index.html">xtemplate</a></li>
  76. </ul>
  77. </ul>
  78. <ul class="s-box component-toctree">
  79. <h4 class="s-box-hd">Components</h4>
  80. <ul class="s-box-bd">
  81. <li><a href="../button/index.html">button</a></li>
  82. <li><a href="../color/index.html">color</a></li>
  83. <li><a href="../combobox/index.html">combobox</a></li>
  84. <li><a href="../date/index.html">date</a></li>
  85. <li><a href="../dd/index.html">dd</a></li>
  86. <li><a href="../editor/index.html">editor</a></li>
  87. <li><a href="../filter-menu/index.html">filter-menu</a></li>
  88. <li><a href="../menu/index.html">menu</a></li>
  89. <li><a href="../menubutton/index.html">menubutton</a></li>
  90. <li><a href="../overlay/index.html">overlay</a></li>
  91. <li><a href="index.html">resizable</a></li>
  92. <li><a href="../scroll-view/index.html">scroll-view</a></li>
  93. <li><a href="../split-button/index.html">split-button</a></li>
  94. <li><a href="../stylesheet/index.html">stylesheet</a></li>
  95. <li><a href="../swf/index.html">swf</a></li>
  96. <li><a href="../tabs/index.html">tabs</a></li>
  97. <li><a href="../toolbar/index.html">toolbar</a></li>
  98. <li><a href="../tree/index.html">tree</a></li>
  99. </ul>
  100. </ul>
  101. </div>
  102. <div id="searchbox" class="searchbox">
  103. <form class="search" action="../../search.html" method="get">
  104. <input type="text" name="q" size="28" class="ipt"/>
  105. <input type="submit" value="Go" class="btn"/>
  106. <input type="hidden" name="check_keywords" value="yes"/>
  107. <input type="hidden" name="area" value="default"/>
  108. </form>
  109. </div>
  110. </nav>
  111. <div id="content" class="body">
  112. <article>
  113. <ul class="api-header clearfix">
  114. <li class="first">
  115. <a href="/" >
  116. 首页
  117. </a>
  118. </li>
  119. <li><a href="../../../../docs/html/api/index.html">API</a></li>
  120. <li><a href="../../../../docs/html/demo/index.html">Demo</a></li>
  121. <li>
  122. <a href="../../../../docs/html/guideline/get-started.html" >Guideline</a>
  123. </li>
  124. <li>
  125. <a href="../../../../docs/html/coms.html" >组件列表</a>
  126. </li>
  127. <li><a href="../../../../docs/html/tutorials/index.html">Tutorials</a></li>
  128. <li style="float:right"><a href="https://github.com/kissyteam/kissy">Source Code</a></li>
  129. <li style="float:right"><a href="/1.4/api/">English API Docs</a></li>
  130. </ul>
  131. <div class='related'>
  132. <h3>Navigation</h3>
  133. <ul>
  134. <li class="right" style="margin-right: 10px">
  135. <a href="../../genindex.html" title="General Index"
  136. accesskey="I">index</a></li>
  137. <li class="right" >
  138. <a href="../../py-modindex.html" title="Python Module Index"
  139. >modules</a> | </li>
  140. <li class="right" >
  141. <a href="../scroll-view/index.html" title="ScrollView 使用示例"
  142. accesskey="N">next</a> | </li>
  143. <li class="right" >
  144. <a href="radio.html" title="Resizable 保留比例 使用示例"
  145. accesskey="P">previous</a> | </li>
  146. <li><a href="../../index.html">KISSY v1.4 Documentation</a> &#187; </li>
  147. <li><a href="../index.html" >Demos</a> &#187; </li>
  148. <li><a href="index.html" accesskey="U">Resizable 使用示例</a> &#187; </li>
  149. </ul>
  150. </div>
  151. <div class="section" id="resizable-plugin-proxy">
  152. <h1>resizable.plugin.Proxy 使用示例<a class="headerlink" href="#resizable-plugin-proxy" title="Permalink to this headline"></a></h1>
  153. <div class="line-block">
  154. <div class="line">缩放代理功能.</div>
  155. </div>
  156. <div class="section" id="class">
  157. <h2>Class<a class="headerlink" href="#class" title="Permalink to this headline"></a></h2>
  158. <blockquote>
  159. <div><ul class="simple">
  160. <li><a class="reference internal" href="../../api/resizable/plugin-proxy.html#resizable.resizable.plugin.Proxy" title="resizable.resizable.plugin.Proxy"><tt class="xref py py-class docutils literal"><span class="pre">resizable.plugin.Proxy</span></tt></a></li>
  161. </ul>
  162. </div></blockquote>
  163. </div>
  164. <div class="section" id="id1">
  165. <h2>resizable.plugin.Proxy 的基本使用<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h2>
  166. <blockquote>
  167. <div><iframe width="100%" height="400" class="iframe-demo" src="/1.4/source/raw/demo/resizable/demo2.html"></iframe><div class="highlight-javascript"><div class="highlight"><pre><span class="nx">KISSY</span><span class="p">.</span><span class="nx">use</span><span class="p">(</span><span class="s2">&quot;resizable,resizable/plugin/proxy&quot;</span><span class="p">,</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">S</span><span class="p">,</span> <span class="nx">Resizable</span><span class="p">,</span> <span class="nx">ResizableProxyPlugin</span><span class="p">)</span> <span class="p">{</span>
  168. <span class="kd">var</span> <span class="nx">resize</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Resizable</span><span class="p">({</span>
  169. <span class="nx">node</span><span class="o">:</span> <span class="s2">&quot;#something-can-resize&quot;</span><span class="p">,</span>
  170. <span class="nx">plugins</span><span class="o">:</span> <span class="p">[</span><span class="k">new</span> <span class="nx">ResizableProxyPlugin</span><span class="p">({</span>
  171. <span class="nx">destroyOnEnd</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span>
  172. <span class="nx">hideNodeOnResize</span><span class="o">:</span><span class="kc">true</span>
  173. <span class="p">})],</span>
  174. <span class="nx">handlers</span><span class="o">:</span> <span class="p">[</span><span class="s2">&quot;b&quot;</span><span class="p">,</span> <span class="s2">&quot;t&quot;</span><span class="p">,</span> <span class="s2">&quot;r&quot;</span><span class="p">,</span> <span class="s2">&quot;l&quot;</span><span class="p">,</span> <span class="s2">&quot;tr&quot;</span><span class="p">,</span> <span class="s2">&quot;tl&quot;</span><span class="p">,</span> <span class="s2">&quot;br&quot;</span><span class="p">,</span> <span class="s2">&quot;bl&quot;</span><span class="p">],</span>
  175. <span class="c1">// optional configs</span>
  176. <span class="nx">minHeight</span><span class="o">:</span> <span class="mi">50</span><span class="p">,</span>
  177. <span class="nx">minWidth</span><span class="o">:</span> <span class="mi">50</span><span class="p">,</span>
  178. <span class="nx">maxHeight</span><span class="o">:</span> <span class="mi">500</span><span class="p">,</span>
  179. <span class="nx">maxWidth</span><span class="o">:</span> <span class="mi">700</span>
  180. <span class="p">});</span>
  181. <span class="p">});</span>
  182. </pre></div>
  183. </div>
  184. </div></blockquote>
  185. </div>
  186. </div>
  187. <div id="disqus_thread"></div>
  188. <script>
  189. if((window.location.hostname.indexOf("kissyui.com")!=-1 )&& window.localStorage.getItem("kissy-commment")!="0"){
  190. /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
  191. var disqus_shortname = 'kissy-docs'; // required: replace example with your forum shortname
  192. // The following are highly recommended additional parameters. Remove the slashes in front to use.
  193. //var disqus_identifier = '/anim';
  194. //var disqus_url = window.location;
  195. /* * * DON'T EDIT BELOW THIS LINE * * */
  196. (function() {
  197. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  198. dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
  199. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  200. })();
  201. }
  202. </script>
  203. <!--<div id="google-search-box">
  204. <div id="cse" style="width: 100%;">Loading</div>
  205. <script>
  206. if(window.location.hostname.indexOf("kissyui.com")!=-1){
  207. document.write('<script src="http://www.google.com/jsapi" type="text/javascript"><'+'/script>');
  208. }
  209. </script>
  210. <script>
  211. if(window.location.hostname.indexOf("kissyui.com")!=-1){
  212. google.load('search', '1', {language : 'zh-CN', style : google.loader.themes.MINIMALIST});
  213. google.setOnLoadCallback(function() {
  214. var customSearchControl = new google.search.CustomSearchControl('012347804910294994683:n4uzb24gqdm');
  215. customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
  216. customSearchControl.draw('cse');
  217. }, true);
  218. }
  219. </script>
  220. </div>-->
  221. </article>
  222. </div>
  223. <footer class="footer">
  224. <p>&copy; Copyright 2010~2014, KISSY Team. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a></p>
  225. </footer></body>
  226. <script>
  227. // added by jayli
  228. (function(){
  229. $('table.docutils').addClass('table table-bordered');
  230. $('.admonition.note').addClass('alert alert-info');
  231. $('.admonition.hint').addClass('alert alert-success');
  232. $('.admonition.warning').addClass('alert alert-warning');
  233. $('.admonition.attention').addClass('alert alert-danger');
  234. })();
  235. </script>
  236. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=39100375" charset="UTF-8"></script>
  237. </html>