posts - 33,  comments - 11,  trackbacks - 0

          依賴

          • panel
          • resizable

          用法示例

          創(chuàng)建 Layout

          經(jīng)由標(biāo)記創(chuàng)建 Layout 。添加 'easyui-layout' 類到 <div/> 標(biāo)記。

          1.  <div id="cc" class="easyui-layout" style="width:600px;height:400px;">  

          2.      <div region="north" title="North Title" split="true" style="height:100px;"></div>  

          3.      <div region="south" title="South Title" split="true" style="height:100px;"></div>  

          4.      <div region="east" iconCls="icon-reload" title="East" split="true" style="width:100px;"></div>  

          5.      <div region="west" split="true" title="West" style="width:100px;"></div>  

          6.      <div region="center" title="center title" style="padding:5px;background:#eee;"></div>  

          7.  </div>  

          在整個(gè)頁(yè)面上創(chuàng)建 Layout

          1.  <body class="easyui-layout">  

          2.      <div region="north" title="North Title" split="true" style="height:100px;"></div>  

          3.      <div region="south" title="South Title" split="true" style="height:100px;"></div>  

          4.      <div region="east" iconCls="icon-reload" title="East" split="true" style="width:100px;"></div>  

          5.      <div region="west" split="true" title="West" style="width:100px;"></div>  

          6.      <div region="center" title="center title" style="padding:5px;background:#eee;"></div>  

          7.  </body>  

          折疊 Layout Panel

          1.  $('#cc').layout();   

          2.  // 折疊 west panel   

          3.  $('#cc').layout('collapse','west');  

           

          Layout Panel 選項(xiàng)

          名稱

          類型

          說(shuō)明

          默認(rèn)值

          title

          string

          Layout panel 的標(biāo)題文字。

          null

          region

          string

          定義 layout panel 的位置,其值是下列之一:northsoutheastwestcenter

           

          border

          boolean

          True 就顯示 layout panel 的邊框。

          true

          split

          boolean

          True 就顯示拆分欄,用戶可以用它改變panel 的尺寸。

          false

          iconCls

          string

          panel 頭部顯示一個(gè)圖標(biāo)的CSS 類。

          null

          href

          string

          從遠(yuǎn)程站點(diǎn)加載數(shù)據(jù)的 URL

          null

          方法

          名稱

          參數(shù)

          說(shuō)明

          resize

          none

          設(shè)置 layout 的尺寸。

          panel

          region

          返回指定的 panel'region' 參數(shù)可能的值是:'north''south''east''west''center'

          collapse

          region

          折疊指定的 panel'region' 參數(shù)可能的值是:'north''south''east''west'

          expand

          region

          展開(kāi)指定的 panel'region' 參數(shù)可能的值是:'north''south''east''west'

          posted on 2011-12-14 15:30 方濤升 閱讀(609) 評(píng)論(1)  編輯  收藏 所屬分類: jQuery EasyUI

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          <2011年12月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          文章分類

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 山阳县| 施甸县| 黑龙江省| 贡山| 苍梧县| 台南市| 和林格尔县| 弥勒县| 遵义县| 永靖县| 江北区| 错那县| 清镇市| 娄底市| 金乡县| 信丰县| 政和县| 珲春市| 汉阴县| 安阳市| 朔州市| 顺义区| 定安县| 浦城县| 澎湖县| 义马市| 卓资县| 田东县| 金坛市| 犍为县| 四子王旗| 岳阳市| 福贡县| 昌江| 遂昌县| 霞浦县| 临朐县| 恩施市| 昭平县| 贵州省| 雅江县|