使用须知
如何开始
安装
全局元素
样式重置
文字
颜色
徽章
提示框
表格
图标
栅格
原生组件
Panel
Accordion
Tabs
Layout
DataGrid
DataList
PropertyGrid
Tree
TreeGrid
LinkButton
Menu
MenuButton
SplitButton
SwitchButton
TabButton
Pagination
ProgressBar
SearchBox
Form
CheckBox
RadioBox
TextBox
PasswordBox
FileBox
TagBox
Combo
ComboBox
ComboGrid
ComboTree
ComboTreeGrid
ComboFilter
NumberBox
NumberSpinner
Calendar
DateBox
DateRangeBox
DateTimeBox
DateTimeRangeBox
TimeSpinner
DateTimeSpinner
Slider
ValidateBox
ImagesBox
Window
Dialog
Messager
Draggable
Droppable
Resizable
Tooltip
MaskedBox
扩展组件
头像
上传
时间轴
聊天
用户面板
消息面板
统计数据面板
Echart面板
圆形统计图
评论
相册
评分
文件
滚动条
二维码
条形码
天气
AT
编辑器
课程表
日程表
项目管理
客户管理
浏览器
FAQ
兼容插件
IconFont
Font Awesome
Ueditor
Ckeditor
Echarts
Plupload
Cropper
BaiduMap
AMap
Colpick
Nprogress
Gantt
GanttEditor
Raty
WebUploader
匿名
匿名 您还未登录

Layout

Document
Native
Basic
Add and Remove Layout
Complex Layout
Nested Layout
No collapsible button
Auto Height
Collapse Title
Custom Collapse Title
Fluid Layout
Plus
Extend

Custom Collapse Title in Layout

Any components can display on the title bar of a collapsed panel.

示例:

代码:

					
<div id="cc" class="easyui-layout" style="width:700px;height:350px;">
  <div data-options="region:'east',split:true,hideCollapsedContent:false" title="East" style="width:100px;"></div>
  <div data-options="region:'west',split:true,collapsed:true,
        hideExpandTool: true,
        expandMode: null,
        hideCollapsedContent: false,
        collapsedSize: 68,
        collapsedContent: function(){
          return $('#titlebar');
        }
      " title="West" style="width:100px;"></div>
  <div data-options="region:'center',title:'Main Title'">
    <table class="easyui-datagrid"
          data-options="
            url:'examples/layout/datagrid_data1.json',
            method:'get',
            border:false,
            singleSelect:true,
            fit:true,
            fitColumns:true
          ">
      <thead>
        <tr>
          <th data-options="field:'itemid'" width="80">Item ID</th>
          <th data-options="field:'productid'" width="100">Product ID</th>
          <th data-options="field:'listprice',align:'right'" width="80">List Price</th>
          <th data-options="field:'unitcost',align:'right'" width="80">Unit Cost</th>
          <th data-options="field:'attr1'" width="150">Attribute</th>
          <th data-options="field:'status',align:'center'" width="60">Status</th>
        </tr>
      </thead>
    </table>
  </div>
</div>
<div id="titlebar" style="padding:2px">
  <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100%" data-options="iconCls:'layout-button-right'" onclick="$('#cc').layout('expand','west')"></a>
  <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100%" data-options="iconCls:'icon-large-picture',size:'large',iconAlign:'top'">Picture</a>
  <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100%" data-options="iconCls:'icon-large-shapes',size:'large',iconAlign:'top'">Shapes</a>
  <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100%" data-options="iconCls:'icon-large-smartart',size:'large',iconAlign:'top'">SmartArt</a>
  <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100%" data-options="iconCls:'icon-large-chart',size:'large',iconAlign:'top'">Chart</a>
</div>