jQuery EasyUI Layout - Creating a Border Layout for a Web Page
A border layout provides five regions: east, west, north, south, and center. Here are some common uses:
- The north region can be used to display a website's slogan.
- The south region can be used to display copyright information and some notes.
- The west region can be used to display a navigation menu.
- The east region can be used to display some promotional items.
- The center region can be used to display the main content.
To apply a layout, you should designate a layout container and then define some regions. A layout must have at least one center region. The following is a layout example:
We create a border layout in a
container; the layout splits the container into two parts, with the navigation menu on the left and the main content on the right.
Finally, we write an onclick event handler to retrieve data; the 'showcontent' function is very simple:
function showcontent(language){
$('#content').html('Introduction to ' + language + ' language');
}