title dialog标题
collapsible 定义折叠按钮 默认不显示 fasle
minimizable 定义最小化按钮 默认不显示 false
maximizable 定义最大化按钮 默认不显示 false
resizable 定义dialog是否可调整尺寸 默认不可以 false
buttons 定义dialog按钮
- buttons:[{
- text:'Save',
- handler:function(){...}
- },{
- text:'Close',
- handler:function(){...}
- }]
toolbar 对话框的顶部工具栏,可能的值:
1、数组,每个工具的选项都与链接按钮(linkbutton)一样。
2、选择器,指示工具栏。
- <div class="easyui-dialog" style="width:600px;height:300px"
- data-options="title:'My Dialog',toolbar:'#tb',modal:true">
- Dialog Content.
- </div>
- <div id="tb">
- <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true"/a>
- <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-help',plain:true"/a>
- </div>
- <div class="easyui-dialog" style="width:600px;height:300px"
- data-options="title:'My Dialog',modal:true,
- toolbar:[{
- text:'Edit',
- iconCls:'icon-edit',
- handler:function(){alert('edit')}
- },{
- text:'Help',
- iconCls:'icon-help',
- handler:function(){alert('help')}
- }]">
- Dialog Content.
- </div>