Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery EasyUI Application - Creating a CRUD App

jQuery EasyUI Application - Creating a CRUD App


jQuery EasyUI Extensions jQuery EasyUI Extension


Usage

Step 1: Create an HTML page



    
        
        
        
    

Step 2: Create the Portal



    $('#pp').portal(options);

Step 3: Add panel widgets to the Portal



    // create the panel

    var p = $('
').appendTo('body');     p.panel({         title: 'My Title',         height:150,         closable: true,         collapsible: true     });          // add the panel to portal     $('#pp').portal('add', {         panel: p,         columnIndex: 0     });

property

Name Type Description Default value
width number The width of the portal. auto
height number The height of the portal. auto
border boolean Defines whether to display the portal's border. false
fit boolean When set to true, the portal is sized to fit its parent container. false

Events

Name Parameters Description
onStateChange none Triggered when the user drags and drops a panel.
onResize width,height Triggered when the portal's size changes.

Method

Name Parameters Description
options none Return the options object.
resize param Set the portal's size; the 'param' parameter includes the following properties:
 width:portal 的新宽度。       

 height:portal 的新高度。 |

| getPanels | columnIndex | Get the panels of the specified column; when the columnIndex parameter is not assigned, all panels are returned.| onSelect | event | add | param | Add a new panel; the 'param' parameter includes the following properties:
panel: the panel object to add.
columnIndex: the index of the column to insert into.| onSelect | event | remove | panel | Remove and destroy the specified panel.| onSelect | event | disableDragging | panel | Disable the dragging feature of the panel.| onSelect | event | enableDragging | panel | Enable the dragging feature of the panel. |

Download the jQuery EasyUI example

jquery-easyui-portal.zip


jQuery EasyUI Extensions jQuery EasyUI Extension