PageRenderTime 346ms CodeModel.GetById 37ms RepoModel.GetById 1ms app.codeStats 0ms

/1.3/docs/html/api/component/tabs/tab.html

https://github.com/yiminghe/kissyteam.github.com
HTML | 308 lines | 259 code | 30 blank | 19 comment | 0 complexity | 276c4ddd9722eaa1ea52787fa0427a38 MD5 | raw file
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta name="data-spm" content="1" data-spm-protocol="i" />
  6. <title>Tabs.Tab &mdash; KISSY v1.3 Documentation</title>
  7. <link rel="stylesheet" href="http://g.tbcdn.cn/kissy/k/1.3.2/css/dpl/base-min.css"/>
  8. <link rel="stylesheet" href="../../../_static/kissy.css"/>
  9. <link rel="stylesheet" href="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/pygments.css" type="text/css" />
  10. <link rel="shortcut icon" href="http://a.tbcdn.cn/s/kissy/favicon.ico" type="image/x-icon" />
  11. <!--<link href='http://fonts.googleapis.com/css?family=Philosopher' rel='stylesheet' type='text/css'>-->
  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. </head>
  33. <body><div id="header">
  34. <h1 class="logo"><a alt="KISSY" href="http://docs.kissyui.com">
  35. <img src="http://a.tbcdn.cn/s/kissy/logo.png" />
  36. </a></h1>
  37. <ul class="navigation">
  38. <li><a href="http://docs.kissyui.com">首页</a></li>
  39. <li><a href="../../../../html/tutorials/index.html" >Tutorials</a></li>
  40. <li><a href="../../../../html/api/index.html" >API</a></li>
  41. <li><a href="../../../../html/demo/index.html" >DEMO</a></li>
  42. <li><a href="https://groups.google.com/group/kissy-ui" >Google Group</a></li>
  43. <li><a href="http://www.github.com/kissyteam" >Source Code</a></li>
  44. <li><a href="http://docs.kissyui.com/1.3/api/" >English API Docs</a></li>
  45. <li><a href="http://blog.kissyui.com/" target="_blank">Offical Blog</a></li>
  46. </ul>
  47. <div id="searchbox" class="searchbox">
  48. <form class="search" action="../../../search.html" method="get">
  49. <input type="text" name="q" size="28" class="ipt"/>
  50. <input type="submit" value="Go" class="btn"/>
  51. <input type="hidden" name="check_keywords" value="yes"/>
  52. <input type="hidden" name="area" value="default"/>
  53. </form>
  54. </div>
  55. </div>
  56. <div id="content">
  57. <div id="layout" class="layout grid-s6m0e7">
  58. <div class="col-main">
  59. <div class="main-wrap">
  60. <div class='related'>
  61. <h3>Navigation</h3>
  62. <ul>
  63. <li class="right" style="margin-right: 10px">
  64. <a href="../../../genindex.html" title="General Index"
  65. accesskey="I">index</a></li>
  66. <li class="right" >
  67. <a href="../../../py-modindex.html" title="Python Module Index"
  68. >modules</a> | </li>
  69. <li class="right" >
  70. <a href="panel.html" title="Tabs.Panel"
  71. accesskey="N">next</a> | </li>
  72. <li class="right" >
  73. <a href="tabs.html" title="Tabs"
  74. accesskey="P">previous</a> | </li>
  75. <li><a href="../../../index.html">KISSY v1.3 Documentation</a> &#187; </li>
  76. <li><a href="../../index.html" >API Documentation</a> &#187; </li>
  77. <li><a href="../index.html" >Component</a> &#187; </li>
  78. <li><a href="index.html" accesskey="U">Tabs</a> &#187; </li>
  79. </ul>
  80. </div>
  81. <div class="body">
  82. <span class="target" id="module-button"></span><div class="section" id="tabs-tab">
  83. <h1>Tabs.Tab<a class="headerlink" href="#tabs-tab" title="Permalink to this headline"></a></h1>
  84. <div class="line-block">
  85. <div class="line">标签</div>
  86. </div>
  87. <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="s1">&#39;tabs&#39;</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">Tabs</span><span class="p">){</span>
  88. <span class="c1">// use Tabs.Tab</span>
  89. <span class="p">});</span>
  90. </pre></div>
  91. </div>
  92. <div class="section" id="class">
  93. <h2>Class<a class="headerlink" href="#class" title="Permalink to this headline"></a></h2>
  94. <blockquote>
  95. <div><ul class="simple">
  96. <li><a class="reference internal" href="#button.Tab" title="button.Tab"><tt class="xref py py-class docutils literal"><span class="pre">Tab</span></tt></a></li>
  97. </ul>
  98. </div></blockquote>
  99. </div>
  100. <div class="section" id="configs">
  101. <h2>Configs<a class="headerlink" href="#configs" title="Permalink to this headline"></a></h2>
  102. <blockquote>
  103. <div><ul class="simple">
  104. <li><a class="reference internal" href="../component/extension/box.html#component.extension.Box.config.content" title="component.extension.Box.config.content"><tt class="xref py py-data docutils literal"><span class="pre">content</span></tt></a></li>
  105. <li><a class="reference internal" href="#button.Tab.config.selected" title="button.Tab.config.selected"><tt class="xref py py-data docutils literal"><span class="pre">selected</span></tt></a></li>
  106. </ul>
  107. </div></blockquote>
  108. </div>
  109. <div class="section" id="attributes">
  110. <h2>Attributes<a class="headerlink" href="#attributes" title="Permalink to this headline"></a></h2>
  111. <blockquote>
  112. <div><ul class="simple">
  113. <li><a class="reference internal" href="../component/extension/box.html#component.extension.Box.prototype.content" title="component.extension.Box.prototype.content"><tt class="xref py py-attr docutils literal"><span class="pre">content</span></tt></a></li>
  114. <li><a class="reference internal" href="#button.Tab.prototype.selected" title="button.Tab.prototype.selected"><tt class="xref py py-data docutils literal"><span class="pre">selected</span></tt></a></li>
  115. </ul>
  116. </div></blockquote>
  117. </div>
  118. <div class="section" id="class-detail">
  119. <h2>Class Detail<a class="headerlink" href="#class-detail" title="Permalink to this headline"></a></h2>
  120. <dl class="class">
  121. <dt id="button.Tab">
  122. <em class="property">class </em><tt class="descclassname">button.</tt><tt class="descname">Tab</tt><a class="headerlink" href="#button.Tab" title="Permalink to this definition"></a></dt>
  123. <dd><div class="line-block">
  124. <div class="line"><strong>Tab</strong> (config)</div>
  125. <div class="line">Tab: &#8216;tabs&#8217;</div>
  126. </div>
  127. <ul class="simple">
  128. <li>继承自 <a class="reference internal" href="../component/controller.html#component.Controller" title="component.Controller"><tt class="xref py py-class docutils literal"><span class="pre">Controller</span></tt></a> , 包含其全部配置,属性,方法,事件.</li>
  129. </ul>
  130. <table class="docutils field-list" frame="void" rules="none">
  131. <col class="field-name" />
  132. <col class="field-body" />
  133. <tbody valign="top">
  134. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>config</strong> (<em>Object</em>) &#8211; 配置项详细见下方 <strong>Configs Detail</strong> .</td>
  135. </tr>
  136. </tbody>
  137. </table>
  138. </dd></dl>
  139. </div>
  140. <div class="section" id="configs-detail">
  141. <h2>Configs Detail<a class="headerlink" href="#configs-detail" title="Permalink to this headline"></a></h2>
  142. <dl class="data">
  143. <dt id="button.Tab.config.selected">
  144. <tt class="descclassname">Tab.config.</tt><tt class="descname">selected</tt><a class="headerlink" href="#button.Tab.config.selected" title="Permalink to this definition"></a></dt>
  145. <dd><p>{Boolean} - 是否选中</p>
  146. </dd></dl>
  147. </div>
  148. <div class="section" id="attributes-detail">
  149. <h2>Attributes Detail<a class="headerlink" href="#attributes-detail" title="Permalink to this headline"></a></h2>
  150. <dl class="attribute">
  151. <dt id="button.Tab.prototype.selected">
  152. <tt class="descclassname">Tab.prototype.</tt><tt class="descname">selected</tt><a class="headerlink" href="#button.Tab.prototype.selected" title="Permalink to this definition"></a></dt>
  153. <dd><p>{Boolean} - 是否选中</p>
  154. </dd></dl>
  155. </div>
  156. </div>
  157. </div>
  158. <div class='related'>
  159. <h3>Navigation</h3>
  160. <ul>
  161. <li class="right" style="margin-right: 10px">
  162. <a href="../../../genindex.html" title="General Index"
  163. accesskey="I">index</a></li>
  164. <li class="right" >
  165. <a href="../../../py-modindex.html" title="Python Module Index"
  166. >modules</a> | </li>
  167. <li class="right" >
  168. <a href="panel.html" title="Tabs.Panel"
  169. accesskey="N">next</a> | </li>
  170. <li class="right" >
  171. <a href="tabs.html" title="Tabs"
  172. accesskey="P">previous</a> | </li>
  173. <li><a href="../../../index.html">KISSY v1.3 Documentation</a> &#187; </li>
  174. <li><a href="../../index.html" >API Documentation</a> &#187; </li>
  175. <li><a href="../index.html" >Component</a> &#187; </li>
  176. <li><a href="index.html" accesskey="U">Tabs</a> &#187; </li>
  177. </ul>
  178. </div>
  179. <div id="disqus_thread"></div>
  180. <script>
  181. if((window.location.hostname.indexOf("kissyui.com")!=-1 )&& window.localStorage.getItem("kissy-commment")!="0"){
  182. /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
  183. var disqus_shortname = 'kissy-docs'; // required: replace example with your forum shortname
  184. // The following are highly recommended additional parameters. Remove the slashes in front to use.
  185. //var disqus_identifier = '/anim';
  186. //var disqus_url = window.location;
  187. /* * * DON'T EDIT BELOW THIS LINE * * */
  188. (function() {
  189. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  190. dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
  191. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  192. })();
  193. }
  194. </script>
  195. <!--<div id="google-search-box">
  196. <div id="cse" style="width: 100%;">Loading</div>
  197. <script>
  198. if(window.location.hostname.indexOf("kissyui.com")!=-1){
  199. document.write('<script src="http://www.google.com/jsapi" type="text/javascript"><'+'/script>');
  200. }
  201. </script>
  202. <script>
  203. if(window.location.hostname.indexOf("kissyui.com")!=-1){
  204. google.load('search', '1', {language : 'zh-CN', style : google.loader.themes.MINIMALIST});
  205. google.setOnLoadCallback(function() {
  206. var customSearchControl = new google.search.CustomSearchControl('012347804910294994683:n4uzb24gqdm');
  207. customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
  208. customSearchControl.draw('cse');
  209. }, true);
  210. }
  211. </script>
  212. </div>-->
  213. </div>
  214. </div>
  215. <div class="col-sub"><ul class="s-box api-toctree">
  216. <h2 class="s-box-hd">Seed</h2>
  217. <ul class="s-box-bd">
  218. <li><a href="../../seed/kissy/index.html">lang</a></li>
  219. <li><a href="../../seed/loader/index.html">loader</a></li>
  220. </ul>
  221. </ul>
  222. <ul class="s-box core-toctree">
  223. <h2 class="s-box-hd">Core</h2>
  224. <ul class="s-box-bd">
  225. <li><a href="../../core/ajax/index.html">ajax</a></li>
  226. <li><a href="../../core/anim/index.html">anim</a></li>
  227. <li><a href="../../core/base/index.html">base</a></li>
  228. <li><a href="../../core/cookie/index.html">cookie</a></li>
  229. <li><a href="../../core/dom/index.html">dom</a></li>
  230. <li><a href="../../core/event/index.html">event</a></li>
  231. <li><a href="../../core/json/index.html">json</a></li>
  232. <li><a href="../../core/node/index.html">node</a></li>
  233. <li><a href="../../core/ua/index.html">ua</a></li>
  234. </ul>
  235. </ul>
  236. <ul class="s-box component-toctree">
  237. <h2 class="s-box-hd">Component</h2>
  238. <ul class="s-box-bd">
  239. <li><a href="../button/index.html">button</a></li>
  240. <li><a href="../calendar/index.html">calendar</a></li>
  241. <li><a href="../color/index.html">color</a></li>
  242. <li><a href="../combobox/index.html">combobox</a></li>
  243. <li><a href="../component/index.html">component</a></li>
  244. <li><a href="../datalazyload/index.html">datalazyload</a></li>
  245. <li><a href="../dd/index.html">dd</a></li>
  246. <li><a href="../editor/index.html">editor</a></li>
  247. <li><a href="../imagezoom/index.html">imagezoom</a></li>
  248. <li><a href="../menu/index.html">menu</a></li>
  249. <li><a href="../menubutton/index.html">menubutton</a></li>
  250. <li><a href="../mvc/index.html">mvc</a></li>
  251. <li><a href="../overlay/index.html">overlay</a></li>
  252. <li><a href="../promise/index.html">promise</a></li>
  253. <li><a href="../resizable/index.html">resizable</a></li>
  254. <li><a href="../rich-base/index.html">rich-base</a></li>
  255. <li><a href="https://github.com/jquery/sizzle/wiki/Sizzle-Home">sizzle</a></li>
  256. <li><a href="../stylesheet/index.html">stylesheet</a></li>
  257. <li><a href="../swf/index.html">swf</a></li>
  258. <li><a href="../switchable/index.html">switchable</a></li>
  259. <li><a href="index.html">tabs</a></li>
  260. <li><a href="../tree/index.html">tree</a></li>
  261. <li><a href="../uri/index.html">uri</a></li>
  262. <li><a href="../waterfall/index.html">waterfall</a></li>
  263. <li><a href="../xtemplate/index.html">xtemplate</a></li>
  264. </ul>
  265. </ul>
  266. </div>
  267. </div>
  268. <script>
  269. if(!$.trim($(".col-extra").html())){
  270. $("#layout").removeClass("grid-s6m0e7").addClass("grid-s6m0");
  271. }
  272. </script>
  273. </div>
  274. <div id="footer">
  275. &copy; Copyright 2010~2012, KISSY Team. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>
  276. </div>
  277. </body>
  278. </html>