/1.4/docs/html/demo/resizable/plugin-proxy.html
HTML | 259 lines | 210 code | 22 blank | 27 comment | 0 complexity | 647869e6d6fca00d71d105b14b2bbaff MD5 | raw file
Possible License(s): Apache-2.0
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8"/>
- <meta name="viewport"
- content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
- <meta name="data-spm" content="1" data-spm-protocol="i" />
- <title>resizable.plugin.Proxy 使用示例 — KISSY v1.4 Documentation</title>
- <link rel="stylesheet" href="//g.alicdn.com/kissy/k/1.4.7/css/dpl/base-min.css"/>
- <link rel="stylesheet" href="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/pygments.css" type="text/css" />
- <link rel="shortcut icon" href="http://a.tbcdn.cn/s/kissy/favicon.ico" type="image/x-icon" />
- <script>
- var DOCUMENTATION_OPTIONS = {
- URL_ROOT: '../../',
- VERSION: '',
- COLLAPSE_INDEX: false,
- FILE_SUFFIX: '.html',
- HAS_SOURCE: true
- };
- </script>
- <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>
- <script>
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-31470541-1']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- <link rel="stylesheet" href="../../_static/kissy.css"/>
- <link rel="stylesheet" href="../../_static/prettify.css"/>
- <link rel="stylesheet" href="../../_static/forkit.css"/>
- <link rel="stylesheet" href="../../_static/bootstrap.css"/>
- <script src="//g.alicdn.com/kissy/k/1.4.7/seed.js"></script>
- </head>
- <body data-spy="scroll" data-target=".bs-docs-sidebar">
- <nav id="sidebar">
- <header>
- <a href="/" >
- <img src="http://gtms01.alicdn.com/tps/i1/T1MVbxFoRcXXchhRni-175-68.png" alt="" />
- </a>
- </header>
-
- <div class="col-sub"><ul class="s-box api-toctree">
- <h4 class="s-box-hd">Seed</h4>
- <ul class="s-box-bd">
- <!--<li><a href="../features/index.html">features</a></li>-->
- <li><a href="../lang/index.html">lang</a></li>
- <li><a href="../loader/index.html">loader</a></li>
- <!--<li><a href="../ua/index.html">ua</a></li>-->
- </ul>
- </ul>
- <ul class="s-box component-toctree">
- <h4 class="s-box-hd">Core</h4>
- <ul class="s-box-bd">
- <li><a href="../anim/index.html">anim</a></li>
- <li><a href="../base/index.html">base</a></li>
- <!--<li><a href="../cookie/index.html">cookie</a></li>-->
- <!--<li><a href="../dom/index.html">dom</a></li>-->
- <!--<li><a href="../event/index.html">event</a></li>-->
- <!--<li><a href="../io/index.html">io</a></li>-->
- <!--<li><a href="../json/index.html">json</a></li>-->
- <!--<li><a href="../node/index.html">node</a></li>-->
- <li><a href="../path/index.html">path</a></li>
- <li><a href="../promise/index.html">promise</a></li>
- <li><a href="../uri/index.html">uri</a></li>
- </ul>
- </ul>
- <ul class="s-box component-toctree">
- <h4 class="s-box-hd">Infrastructure</h4>
- <ul class="s-box-bd">
- <!--<li><a href="../component/index.html">component</a></li>-->
- <li><a href="../mvc/index.html">mvc</a></li>
- <li><a href="../xtemplate/index.html">xtemplate</a></li>
- </ul>
- </ul>
- <ul class="s-box component-toctree">
- <h4 class="s-box-hd">Components</h4>
- <ul class="s-box-bd">
- <li><a href="../button/index.html">button</a></li>
- <li><a href="../color/index.html">color</a></li>
- <li><a href="../combobox/index.html">combobox</a></li>
- <li><a href="../date/index.html">date</a></li>
- <li><a href="../dd/index.html">dd</a></li>
- <li><a href="../editor/index.html">editor</a></li>
- <li><a href="../filter-menu/index.html">filter-menu</a></li>
- <li><a href="../menu/index.html">menu</a></li>
- <li><a href="../menubutton/index.html">menubutton</a></li>
- <li><a href="../overlay/index.html">overlay</a></li>
- <li><a href="index.html">resizable</a></li>
- <li><a href="../scroll-view/index.html">scroll-view</a></li>
- <li><a href="../split-button/index.html">split-button</a></li>
- <li><a href="../stylesheet/index.html">stylesheet</a></li>
- <li><a href="../swf/index.html">swf</a></li>
- <li><a href="../tabs/index.html">tabs</a></li>
- <li><a href="../toolbar/index.html">toolbar</a></li>
- <li><a href="../tree/index.html">tree</a></li>
- </ul>
- </ul>
-
- </div>
-
- <div id="searchbox" class="searchbox">
- <form class="search" action="../../search.html" method="get">
- <input type="text" name="q" size="28" class="ipt"/>
- <input type="submit" value="Go" class="btn"/>
- <input type="hidden" name="check_keywords" value="yes"/>
- <input type="hidden" name="area" value="default"/>
- </form>
- </div>
- </nav>
- <div id="content" class="body">
- <article>
- <ul class="api-header clearfix">
- <li class="first">
- <a href="/" >
- 首页
- </a>
- </li>
- <li><a href="../../../../docs/html/api/index.html">API</a></li>
- <li><a href="../../../../docs/html/demo/index.html">Demo</a></li>
- <li>
- <a href="../../../../docs/html/guideline/get-started.html" >Guideline</a>
- </li>
- <li>
- <a href="../../../../docs/html/coms.html" >组件列表</a>
- </li>
- <li><a href="../../../../docs/html/tutorials/index.html">Tutorials</a></li>
- <li style="float:right"><a href="https://github.com/kissyteam/kissy">Source Code</a></li>
- <li style="float:right"><a href="/1.4/api/">English API Docs</a></li>
- </ul>
-
- <div class='related'>
- <h3>Navigation</h3>
-
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../../genindex.html" title="General Index"
- accesskey="I">index</a></li>
- <li class="right" >
- <a href="../../py-modindex.html" title="Python Module Index"
- >modules</a> | </li>
- <li class="right" >
- <a href="../scroll-view/index.html" title="ScrollView 使用示例"
- accesskey="N">next</a> | </li>
- <li class="right" >
- <a href="radio.html" title="Resizable 保留比例 使用示例"
- accesskey="P">previous</a> | </li>
- <li><a href="../../index.html">KISSY v1.4 Documentation</a> » </li>
- <li><a href="../index.html" >Demos</a> » </li>
- <li><a href="index.html" accesskey="U">Resizable 使用示例</a> » </li>
- </ul>
- </div>
-
- <div class="section" id="resizable-plugin-proxy">
- <h1>resizable.plugin.Proxy 使用示例<a class="headerlink" href="#resizable-plugin-proxy" title="Permalink to this headline">¶</a></h1>
- <div class="line-block">
- <div class="line">缩放代理功能.</div>
- </div>
- <div class="section" id="class">
- <h2>Class<a class="headerlink" href="#class" title="Permalink to this headline">¶</a></h2>
- <blockquote>
- <div><ul class="simple">
- <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>
- </ul>
- </div></blockquote>
- </div>
- <div class="section" id="id1">
- <h2>resizable.plugin.Proxy 的基本使用<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
- <blockquote>
- <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">"resizable,resizable/plugin/proxy"</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>
- <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>
- <span class="nx">node</span><span class="o">:</span> <span class="s2">"#something-can-resize"</span><span class="p">,</span>
- <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>
- <span class="nx">destroyOnEnd</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span>
- <span class="nx">hideNodeOnResize</span><span class="o">:</span><span class="kc">true</span>
- <span class="p">})],</span>
- <span class="nx">handlers</span><span class="o">:</span> <span class="p">[</span><span class="s2">"b"</span><span class="p">,</span> <span class="s2">"t"</span><span class="p">,</span> <span class="s2">"r"</span><span class="p">,</span> <span class="s2">"l"</span><span class="p">,</span> <span class="s2">"tr"</span><span class="p">,</span> <span class="s2">"tl"</span><span class="p">,</span> <span class="s2">"br"</span><span class="p">,</span> <span class="s2">"bl"</span><span class="p">],</span>
- <span class="c1">// optional configs</span>
- <span class="nx">minHeight</span><span class="o">:</span> <span class="mi">50</span><span class="p">,</span>
- <span class="nx">minWidth</span><span class="o">:</span> <span class="mi">50</span><span class="p">,</span>
- <span class="nx">maxHeight</span><span class="o">:</span> <span class="mi">500</span><span class="p">,</span>
- <span class="nx">maxWidth</span><span class="o">:</span> <span class="mi">700</span>
- <span class="p">});</span>
- <span class="p">});</span>
- </pre></div>
- </div>
- </div></blockquote>
- </div>
- </div>
- <div id="disqus_thread"></div>
- <script>
- if((window.location.hostname.indexOf("kissyui.com")!=-1 )&& window.localStorage.getItem("kissy-commment")!="0"){
- /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
- var disqus_shortname = 'kissy-docs'; // required: replace example with your forum shortname
- // The following are highly recommended additional parameters. Remove the slashes in front to use.
- //var disqus_identifier = '/anim';
- //var disqus_url = window.location;
- /* * * DON'T EDIT BELOW THIS LINE * * */
- (function() {
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
- dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
- })();
- }
- </script>
- <!--<div id="google-search-box">
- <div id="cse" style="width: 100%;">Loading</div>
- <script>
- if(window.location.hostname.indexOf("kissyui.com")!=-1){
- document.write('<script src="http://www.google.com/jsapi" type="text/javascript"><'+'/script>');
- }
- </script>
- <script>
- if(window.location.hostname.indexOf("kissyui.com")!=-1){
- google.load('search', '1', {language : 'zh-CN', style : google.loader.themes.MINIMALIST});
- google.setOnLoadCallback(function() {
- var customSearchControl = new google.search.CustomSearchControl('012347804910294994683:n4uzb24gqdm');
- customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
- customSearchControl.draw('cse');
- }, true);
- }
- </script>
- </div>-->
- </article>
- </div>
- <footer class="footer">
- <p>© Copyright 2010~2014, KISSY Team. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a></p>
- </footer></body>
- <script>
- // added by jayli
- (function(){
- $('table.docutils').addClass('table table-bordered');
- $('.admonition.note').addClass('alert alert-info');
- $('.admonition.hint').addClass('alert alert-success');
- $('.admonition.warning').addClass('alert alert-warning');
- $('.admonition.attention').addClass('alert alert-danger');
- })();
- </script>
- <script type="text/javascript" src="http://tajs.qq.com/stats?sId=39100375" charset="UTF-8"></script>
- </html>