"Agile Framework (i)" Home page layout

Source: Internet
Author: User

Layout ideas:

1, using the bottom of the nav to layout

1 <navclass= "Bar Bar-tab">2             <aclass= "Tab-item Active"href= "#home_article"Data-target= "article">3                 <spanclass= "icon Icon-home"></span>4                 <spanclass= "Tab-label">Home</span>5             </a>6             <aclass= "Tab-item"href= "#householdAcceptance_article"Data-target= "article">7                 <spanclass= "icon icon-list"></span>8                 <spanclass= "Tab-label">Sub-household acceptance</span>9             </a>Ten             <aclass= "Tab-item"href= "#officialDeliver_article"Data-target= "article"> One                 <spanclass= "icon Icon-stop"></span> A                 <spanclass= "Tab-label">Formal delivery</span> -             </a> -             <aclass= "Tab-item"href= "#dailyReception_article"Data-target= "article"> the                 <spanclass= "icon Icon-pages"></span> -                 <spanclass= "Tab-label">Daily reception</span> -             </a> -             <aclass= "Tab-item"href= "#statisticsAnalysis_article"Data-target= "article"> +                 <spanclass= "icon Icon-pages"></span> -                 <spanclass= "Tab-label">Statistics and analysis</span> +             </a> A         </nav>
Bottom Navigation

2, the content of the switch (that is, Data-target) with the object is article(see the value of the Data-target property in the previous step)

It is important to note that article is not a return (back) method, only the section. Research the layout of the next AppStore, the first page of the switch is to take the bottom nav switch, and there is no top back, because there is no need for it.

3, the previous step in the first page content article switch: is called when the program is enabled to implement the A.launch () method---because the article file is placed in the Html\ directory.

  

1$(function () {2 A.launch ({3Basepagepath: ' html/',4Showpageloading:false,5Isautorender:true6     });7 8     //home Page Load Home content9A.router.showarticle ("html/home_article.html");Ten});
Application Startup

Roughly on these 3 steps, there are several points to note:

1, from the official API description: " in order to effectively manage all the section,agile set a container with ID #section_container, all sections are located under this container." "

Otherwise, you may see a "#undefined" issue after the URL when you visit the homepage .

Find out the source of agile, can explain the above description:

The _initindex method in the A.router object:

"Agile Framework (i)" Home page layout

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.