Configurations of jqmobi

Source: Internet
Author: User

Okay, I used jqmobi for almost half a year. I didn't even read the official documents. No wonder how many roads I took !!!!

1. Click Upload

1.1 JavaScript Method

1 $. UI. showbackbutton = false

1.2 CSS Method

1 # backbutton {2 display: none! Important; 3}

1.3 set the text of the back button (what I often do)

1 $. UI. backbuttontext = "";

2. Some of my initialization settings are still official documents... O (character _ blank) O Haha ~

//初始化默认设置$.ui.animateHeaders = false; //禁止头部动画$.ui.useOSThemes = false; //禁止自动选择皮肤$.ui.autoLaunch = true; //自动初始化$.ui.openLinksNewTab = false; //禁止在新窗口打开页面?$.ui.splitview = false; //禁止大于某个分辨率自动展开菜单$.ui.backButtonText = " "; //设置后退按钮文字$.feat.nativeTouchScroll=false; //Disable native scrolling globally 全部的页面都没有了滚动条// $.ui.setLeftSideMenuWidth("200px"); //设置左边菜单宽度为200px   // $.ui.setLeftSideMenuWidth($("#afui").width()-50);//设置左边菜单的宽度为 整个页面的宽度减去50px;// $.ui.setRightSideMenuWidth("300px"); //Set the right side menu to be 300 pixels wide//$.ui.splitview=true; 设置左边菜单一直显示在桌面上//$.ui.disableSplitView(); 关闭左边菜单// $.ui.toggleLeftSideMenu(true);//Force the menu to show//$.ui.toggleLeftSideMenu(false);//Force the menu to hide

At the beginning of the forum, I used CSS to change the degree of consistency of the left-side menu. It was always impossible to achieve the effect. I didn't think it would be okay to use Js... O (generation □generation) o I like this generation

$.ui.setLeftSideMenuWidth($("#afui").width()-50);
//设置左边菜单的宽度为 整个页面的宽度减去50px;

3. In jqmobi, there are many pannel settings that make it important for me to remember some of the valid text here. O (strong _ strong) O Haha ~

 1                 selected="true"             默认页面 2                 data-title="string"            header 部分显示的标题(需要存在h1标签) 3                 data-header="id"            通过dom的id调用不同的 header ,注意使用

These can be added to your pannel standard. Note: Do not add selected = "true" to two different pannel instances at the same time, returns the resulting O (primary □primary) O

Configurations of jqmobi

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.