Layout of the main framework of jQueryMiniUI development Tutorial: OutlookMenu (2)

Source: Internet
Author: User
Layout of the main frame: OutlookMenu reference example: layout of the main frame: OutlookMenu 1: Create an interface Layout & lt ;! -- Layout -- & gt; & lt; divid & quot; layout1 & quot; class & quot; mini-layout & quot; style & quot; width: 100%; height: 100%; & q

Layout of the main framework: OutlookMenu


Reference example: layout of the main frame: OutlookMenu


I. Create an interface Layout



















Layout implements the upper, middle, and lower la s; Splitter implements the Left and Right folding la S.

Ii. Create OutlookMenu

Create the OutlookMenu control and place it in the left-side area of the Splitter as the function operation tree.

IdField = "id" parentField = "pid" textField = "text">
The JSON format returned by the url from the server is as follows:
[
{Id: "user", text: "user management "},
{Id: "addUser", pid: "user", text: "add user", iconCls: "icon-add", url: "../navbartree/navbartree.html "},
{Id: "editUser", pid: "user", text: "Modify user", iconCls: "icon-edit", url: "../buttonedit/openmediaworkflow html "},
{Id: "removeUser", pid: "user", text: "delete user", iconCls: "icon-remove", url: "../datagrid/datagrid.html "},

{Id: "right", text: "permission management "},
{Id: "addRight", pid: "right", text: "query permission", iconCls: "Note", url :".. /navbartree/navbartree.html ", iconPosition:" top "},
{Id: "editRight", pid: "right", text: "Operation permission", iconCls: "Reports", url :".. /buttonedit/openmediaworkflow html ", iconPosition:" top "}
]
The tree structure is composed of "id" and "pid". When creating OutlookMenu, set "idField" and "parentField ".

3. Create an IFrame

Add an IFrame element to the right of the Splitter as the main operation area.


4. Listening for handling "itemselect" Events

Var iframe = document. getElementById ("mainframe ");
Iframe. src = "../datagrid/datagrid.html #1"

Function onItemSelect (e ){
Var item = e. item;
Iframe. src = item. url;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.