




已阅读5页,还剩7页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
To avoid naming conflicts with other plugins or frameworks that also use data- attributes1、ButtonLinks with data-role=button. Input-based buttons, links in toolbars and button elements are auto-enhanced, no data-role required.data-cornerstrue | falsedata-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | searchdata-iconposleft | right | top | bottom | notextdata-iconshadowtrue | falsedata-inlinetrue | falsedata-minitrue | false (紧凑版本的大小)data-shadowtrue | falsedata-themeswatch letter (a-z)Multiple buttons can be wrapped in a container with a data-role=controlgroup attribute for a vertically grouped set. Add the data-type=horizontalattribute for the buttons to sit side-by-side. Add the data-mini=true to get the mini/compact sized version for all the buttons that appear in the controlgroup. 2、CheckboxPairs of labels and inputs with type=checkbox are auto-enhanced, no data-role requireddata-minitrue | false ( Compact sized version)data-rolenone ( Prevents auto-enhancement to use native control)data-themeswatch letter (a-z) (Added to the form element)Multiple checkboxes can be wrapped in a container with a data-role=controlgroup attribute for a vertically grouped set. Add the data-type=horizontal attribute for the checkboxes to sit side-by-side. Add the data-mini=true to get the mini/compact sized version for all the checkboxes that appear in the controlgroup. 3、CollapsibleA heading and content wrapped in a container with the data-role=collapsibledata-collapsedtrue | falsedata-collapsed-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | searchdata-content-themeswatch letter (a-z)data-expanded-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | searchdata-iconposleft | right | top | bottomdata-insettrue | falsedata-minitrue | false - Compact sized versiondata-themeswatch letter (a-z)4、Collapsible setA number of collapsibles wrapped in a container with the data-role=collapsible-setdata-collapsed-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | searchdata-content-themeswatch letter (a-z) - Sets all collapsibles in setdata-expanded-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | searchdata-iconposleft | right | top | bottom | notextdata-insettrue | falsedata-minitrue | false - Compact sized versiondata-themeswatch letter (a-z) - Sets all collapsibles in set5、ContentContainer with data-role=contentdata-themeswatch letter (a-z)6、ControlgroupDIV or FIELDSET container with data-role=controlgroup. Visually integrate multiple button-styled inputs of a single type (checkboxes, link-based buttons, radio buttons, selects) into a group. For grouping form checkboxes and radio buttons, the fieldset container is recommended inside a div container with the data-role=fieldcontain, to improve label styling.data-minitrue | false - Compact sized version for all items in the controlgroupdata-typehorizontal | vertical - For horizontal or vertical item alignment7、DialogContainer with data-role=dialog or linked to with data-rel=dialog on the anchor.data-close-btn-textstring (Text for the close button, dialog only)data-dom-cachetrue | falsedata-overlay-themeswatch letter (a-z) - Overlay theme when the page is opened in a dialogdata-themeswatch letter (a-z)data-titlestring (Title used when page is shown)8、EnhancementContainer with data-enhance=false or data-ajax=falsedata-enhancetrue | falsedata-ajaxtrue | falseAny DOM elements inside a data-enhance=false container, save for data-role=page|dialog elements, will be ignored during initial enhancement and subsequent create events provided that the $.mobile.ignoreContentEnabled flag is set prior to the enhancement (eg in a mobileinit binding).Any link or form element inside data-ajax=false containers will be ignored by the frameworks navigation functionality when $.mobile.ignoreContentEnabled is set to true.9、Field containerContainer with data-role=fieldcontain wrapped around label/form element pair10、Fixed ToolbarContainer with data-role=header or data-role=footer plus the attribute data-position=fixeddata-disable-page-zoomtrue | false (User-scaling-ability for pages with fixed toolbars)data-fullscreentrue | false (Setting toolbars over the page-content)data-tap-toggletrue | false (Ability to toggle toolbar-visibility on user tap/click)data-transitionslide | fade | none (Show/hide-transition when a tap/click occurs)data-update-page-paddingtrue | false(Have the page top and bottom padding updated on resize, transition, updatelayout events (the framework always updates the padding on the pageshow event)).data-visible-on-page-showtrue | false(Toolbar-visibility when parent page is shown)11、Flip toggle switchSelect with data-role=slider and two option elementdata-minitrue | false - Compact sized versiondata-rolenone (Prevents auto-enhancement to use native control)data-themeswatch letter (a-z) - Added to the form elementdata-track-themeswatch letter (a-z) - Added to the form element12、FooterContainer with data-role=footerdata-idstring (Unique ID. Required for persistent footers)data-positionfixeddata-fullscreentrue | false(Used in conjunction with fixed toolbars)data-themeswatch letter (a-z)13、HeaderContainer with data-role=headerdata-idstring (Unique ID. Required for persistent headers)data-positionfixeddata-fullscreentrue | false - Used in conjunction with fixed toolbarsdata-themeswatch letter (a-z)14、LinkLinks, including those with a data-role=button, and form submit buttons share these attributesdata-ajaxtrue | falsedata-directionreverse (Reverse transition animation (only for page or dialog))data-dom-cachetrue | falsedata-prefetchtrue | falsedata-relback - To move one step back in historydialog - To open link styled as dialog, not tracked in historyexternal - For linking to another domainpopup - For opening a popupdata-transitionfade | flip | flow | pop | slide | slidedown | slidefade | slideup | turn | nonedata-position-toorigin - Centers the popup over the link that opens itjQuery selector - Centers the popup over the specified elementwindow - Centers the popup in the windowNote: option only available when used with popups. See also: popup options.15、ListviewOL or UL with data-role=listviewdata-autodividerstrue | falsedata-count-themeswatch letter (a-z) - Default cdata-divider-themeswatch letter (a-z) - Default bdata-filtertrue | falsedata-filter-placeholderstringdata-filter-themeswatch letter (a-z)data-header-themeswatch letter (a-z)data-insettrue | falsedata-split-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | searchdata-split-themeswatch letter (a-z) - Default bdata-themeswatch letter (a-z)16、Listview itemLI within a listviewdata-filtertextstring - Filter by this value instead of inner textdata-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search | falsedata-rolelist-dividerdata-themeswatch letter (a-z)The data-icon attribute is only applicable for a listview item if it contains a link.17、NavbarA number of LIs wrapped in a container with data-role=navbardata-iconposleft | right | top | bottom | notextTo add icons to the navbar items, the data-icon attribute is used, specifying a standard mobile icon for each item.Navbars inherit the theme-swatch from their parent container. Setting the data-theme attribute to a navbar is not supported. The data-theme attribute can be set individually to the links inside a navbar.18、PageContainer with data-role=pagedata-add-back-btntrue | false - Auto add back button, header onlydata-back-btn-textstringdata-back-btn-themeswatch letter (a-z)data-close-btn-textstring - Text for the close button, dialog onlydata-dom-cachetrue | falsedata-fullscreentrue | false - Used in conjunction with fixed toolbars.Deprecated in 1.1 - use on header and footer instead. data-overlay-themeswatch letter (a-z) - Overlay theme when the page is opened in a dialogdata-themeswatch letter (a-z) - Default cdata-titlestring - Title used when page is showndata-urlurl - Value for updating the URL, instead of the url used to request the page19、PopupContainer with data-role=popupAnchor with a data-rel=popup opens the popupdata-cornerstrue | falsedata-overlay-themeswatch letter (a-z) - Default null (transparent background)data-shadowtrue | falsedata-themeswatch letter (a-z) | none - Default inherited, none sets the popup to transparentdata-tolerance30, 15, 30, 15 (Distance from the edges of the window (top, right, bottom, left))data-position-toorigin - Centers the popup over the link that opens itjQuery selector - Centers the popup over the specified elementwindow - Centers the popup in the windowdata-relpopup - For opening a popupdata-transitionfade | flip | flow | pop | slide | slidedown | slidefade | slideup | turn | none(The transition to be used when showing/hiding the popup)20、Radio buttonPairs of labels and inputs with type=radio are auto-enhanced, no data-role requireddata-minitrue | false - Compact sized versiondata-rolenone - Prevents auto-enhancement to use native controldata-themeswatch letter (a-z) - Added to the form elementMultiple radion buttons can be wrapped in a container with a data-role=controlgroup attribute for a vertically grouped set. Add the data-type=horizontal attribute for the radio buttons to sit side-by-side. Add the data-mini=true to get the mini/compact sized version for all the radio buttons that appear in the controlgroup. 21、SelectAll select form elements are auto-enhanced, no data-role requireddata-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search | false data-iconposleft | right | top | bottom | notextdata-inlinetrue | falsedata-minitrue | false - Compact sized versionda
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 二零二五年度夫妻共同财产分割及居住权协议
- 2025版网络安全技术服务合同范本(含年度维护服务)
- 二零二五年度建筑安装工程施工许可证办理服务合同
- 二零二五年度历史文化保护区修复装修工程合同
- 2025版海洋工程建设项目施工结算与海洋环境保护协议
- 麻醉个案护理汇报课件
- 2025版大摩退出中金项目合作终止协议
- 二零二五版堆场货物装卸与仓储管理协议
- 窦姣离婚协议书及子女抚养权及探视权安排
- 二零二五年度重型吊车转让及运输保险合同
- 2025至2030中国多晶硅行业供给预测与未来趋势前景预判报告
- 代卖材料合同协议书范本
- 潍坊银行笔试题库及答案
- 护理学科研创新试题及答案
- 日本签证个人信息处理同意书
- DB50∕T 632-2015 火灾高危单位消防安全评估规程
- 从患者画像到个性化治疗医疗大数据的作用路径
- 盾构施工安全培训教育全面版
- 流动餐车走街串巷的美食之旅
- 配电网建设知识培训课件
- 井下矿山顶板安全知识培训
评论
0/150
提交评论