설 연수
하하호홓
설 연수
전체 방문자
오늘
어제
  • 분류 전체보기 (231)
    • Back-End (2)
      • Java (20)
      • JSP (13)
      • Spring (18)
      • Kotlin (0)
      • node.js (0)
    • Front-End (68)
      • JavaScript (19)
      • jQuery (39)
      • Angular (4)
      • HTML (5)
    • Dev-Ops (12)
      • Linux, Cloud (5)
      • docker, k8s (5)
      • ElasticSeach (2)
    • Other (33)
      • OOP (3)
      • 알고리즘 (2)
      • DB (12)
      • Git (1)
      • Swift (4)
    • Backup (65)

블로그 메뉴

    공지사항

    인기 글

    태그

    • docker
    • jquery invalid
    • angular callback
    • MYSQL
    • Angular
    • 크로스도메인
    • Kafka
    • page not found
    • RESTful
    • 404 error
    • angular4
    • angular2
    • 패스트캠퍼스
    • angular 콜백
    • Redis
    • mongodb
    • INVALID
    • jOOQ
    • flex
    • CORS

    최근 댓글

    최근 글

    티스토리

    hELLO · Designed By 정상우.
    설 연수

    하하호홓

    Front-End/jQuery

    Data- attribute(옵션) reference

    2012. 4. 10. 11:32

    http://jquerymobile.com/demos/1.1.0-rc.2/docs/api/data-attributes.html

    Data- attribute(옵션) reference

    The jQuery Mobile framework uses HTML5 data- attributes to allow for markup-based initialization and configuration of widgets. These attributes are completely optional; calling plugins manually and passing options directly is also supported. To avoid naming conflicts with other plugins or frameworks that also usedata- attributes, set a custom namespace by modifying the ns global option.

    Button

    Links with data-role="button". Input-based buttons and button elements are auto-enhanced, no data-rolerequired

    data-cornerstrue | false
    data-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search
    data-iconposleft | right | top | bottom | notext
    data-iconshadowtrue | false
    data-inlinetrue | false
    data-minitrue | false - Compact sized version
    data-shadowtrue | false
    data-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="horizontal" attribute for the buttons to sit side-by-side.

    Checkbox

    Pairs of labels and inputs with type="checkbox" are auto-enhanced, no data-role required

    data-minitrue | false - Compact sized version
    data-rolenone (prevents auto-enhancement to use native control)
    data-themeswatch letter (a-z) - Added to the form element

    Collapsible

    A heading and content wrapped in a container with the data-role="collapsible"

    data-collapsedtrue | false
    data-content-themeswatch letter (a-z)
    data-iconposleft | right | top | bottom | notext
    data-minitrue | false - Compact sized version
    data-themeswatch letter (a-z)

    Collapsible set

    A number of collapsibles wrapped in a container with the data-role="collapsible-set"

    data-content-themeswatch letter (a-z) - Sets all collapsibles in set
    data-iconposleft | right | top | bottom | notext
    data-minitrue | false - Compact sized version
    data-themeswatch letter (a-z) - Sets all collapsibles in set

    Content

    Container with data-role="content"

    data-themeswatch letter (a-z)

    Dialog

    Page with data-role="page" linked to with data-rel="dialog" on the anchor.

    data-close-btn-textstring (text for the close button, dialog only)
    data-dom-cachetrue | false
    data-overlay-themeswatch letter (a-z) - overlay theme when the page is opened in a dialog
    data-themeswatch letter (a-z)
    data-titlestring (title used when page is shown)

    Enhancement

    Container with data-enhance="false" or data-ajax="false"

    data-enhancetrue | false
    data-ajaxtrue | false

    Any 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 elements inside data-enhance="false" containers will be ignored by the framework's navigation functionality when $.mobile.ignoreContentEnabled is set to true.

    Field container

    Container with data-role="fieldcontain" wrapped around label/form element pair

    Flip toggle switch

    Select with data-role="slider", two options only

    data-minitrue | false - Compact sized version
    data-rolenone (prevents auto-enhancement to use native control)
    data-themeswatch letter (a-z) - Added to the form element
    data-track-themeswatch letter (a-z) - Added to the form element

    Footer

    Container with data-role="footer"

    data-idstring (unique id, useful in persistent footers)
    data-positionfixed
    data-fullscreentrue (used in conjunction with fixed toolbars)
    data-themeswatch letter (a-z)

    Header

    Container with data-role="header"

    data-positionfixed
    data-fullscreentrue (used in conjunction with fixed toolbars)
    data-themeswatch letter (a-z)

    Link

    Links, including those with a data-role="button", and form submit buttons share these attributes

    data-ajaxtrue | false
    data-directionreverse (reverse page transition animation)
    data-dom-cachetrue | false
    data-prefetchtrue | false
    data-relback (to move one step back in history)
    dialog (to open link styled as dialog, not tracked in history)
    external (for linking to another domain)
    data-transitionslide | slideup | slidedown | pop | fade | flip

    Listview

    OL or UL with data-role="listview"

    data-count-themeswatch letter (a-z)
    data-dividerthemeswatch letter (a-z)
    data-filtertrue | false
    data-filter-placeholderstring
    data-filter-themeswatch letter (a-z)
    data-insettrue | false
    data-split-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search
    data-split-themeswatch letter (a-z)
    data-themeswatch letter (a-z)

    Listview item

    LI within a listview

    data-filtertextstring (filter by this value instead of inner text)
    data-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search
    data-rolelist-divider
    data-themeswatch letter (a-z) - can also be set on individual LIs

    Navbar

    A number of LIs wrapped in a container with data-role="navbar"

    data-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search
    data-iconposleft | right | top | bottom | notext
    data-themeswatch letter (a-z) - can also be set on individual LIs

    Page

    Container with data-role="page"

    data-add-back-btntrue | false (auto add back button, header only)
    data-back-btn-textstring
    data-back-btn-themeswatch letter (a-z)
    data-close-btn-textstring (text for the close button, dialog only)
    data-dom-cachetrue | false
    data-fullscreentrue (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 dialog
    data-themeswatch letter (a-z)
    data-titlestring (title used when page is shown)

    Radio button

    Pairs of labels and inputs with type="radio" are auto-enhanced, no data-role required

    data-minitrue | false - Compact sized version
    data-rolenone (prevents auto-enhancement to use native control)
    data-themeswatch letter (a-z) - Added to the form element

    Select

    All select form elements are auto-enhanced, no data-role required

    data-iconhome | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search
    data-iconposleft | right | top | bottom | notext
    data-inlinetrue | false
    data-minitrue | false - Compact sized version
    data-native-menutrue | false
    data-overlay-themeswatch letter (a-z) - overlay theme for non-native selects
    data-placeholdertrue | false - Add to the Option
    data-rolenone (prevents auto-enhancement to use native control)
    data-themeswatch letter (a-z) - Added to the form element

    Multiple selects can be wrapped in a fieldset with a data-role="controlgroup" attribute for a vertically grouped set. Add the data-type="horizontal" attribute for the selects to sit side-by-side.

    Slider

    Inputs with type="range" are auto-enhanced, no data-role required

    data-highlighttrue | false - Adds an active state fill on track to handle
    data-minitrue | false - Compact sized version
    data-rolenone (prevents auto-enhancement to use native control)
    data-themeswatch letter (a-z) - Added to the form element
    data-track-themeswatch letter (a-z) - Added to the form element

    Text input & Textarea

    Input type="text|number|search|etc." or textarea elements are auto-enhanced, no data-role required

    data-minitrue | false - Compact sized version
    data-rolenone (prevents auto-enhancement to use native control)
    data-themeswatch letter (a-z) - Added to the form element

    'Front-End > jQuery' 카테고리의 다른 글

    jQuery Mobile 페이지 이동방식(드래그), swipeleft, swiperight  (0) 2012.04.23
    모바일웹&jQuery&CSS  (0) 2012.04.12
    jQuery mobile jQuery Mobile - 구조 & 문법  (0) 2012.04.10
    Effect - Reference(API)  (0) 2012.04.06
    Events - Reference(API)  (0) 2012.04.06
      'Front-End/jQuery' 카테고리의 다른 글
      • jQuery Mobile 페이지 이동방식(드래그), swipeleft, swiperight
      • 모바일웹&jQuery&CSS
      • jQuery mobile jQuery Mobile - 구조 & 문법
      • Effect - Reference(API)
      설 연수
      설 연수

      티스토리툴바