테스트 사이트 - 개발 중인 베타 버전입니다

제이쿼리 모바일 checkboxradio widget - option -> initSelector

제이쿼리 모바일 checkboxradio widget - option -> initSelector

initSelector

Type: Selector
Default: See below

initSelectorcheckboxradio 위젯 의 기본값 은 다음과 같습니다.

"input:not( :jqmData(role='flipswitch' ) )[type='checkbox'],input[type='radio']:not( :jqmData(role='flipswitch' ))"

참고 : 이 옵션은 1.4.0에서 사용되지 않으며 1.5.0에서 제거됩니다.
jQuery Mobile 1.4.0부터는 initSelector더 이상 위젯 옵션이 아닙니다. 대신 위젯 프로토 타입에 직접 선언됩니다. 따라서 mobileinit이벤트 를 처리 하고 프로토 타입을 덮어 쓰면 사용자 정의 값을 지정할 수 있습니다 initSelector.



$( document ).on( "mobileinit", function() {
$.mobile.checkboxradio.prototype.initSelector = "div.custom";
});

참고 :mobileinit 이벤트가 jQuery Mobile의로드 프로세스의 일부로 트리거되기 때문에 jQuery를로드 한 후에 핸들러 를 연결해야 하지만 jQuery Mobile을로드하기 전에 핸들러 를 연결해야 합니다.

이 옵션의 값은 jQuery 선택기 문자열입니다. 프레임 워크는이 옵션의 값에 따라 요소를 선택하고 각 요소의 결과 목록에서 checkboxradio 위젯을 인스턴스화합니다.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
1236
jQuery Mobile taphold event
1235
jQuery Mobile tap event
1234
jQuery Mobile swiperight event
1233
jQuery Mobile swipeleft event
1232
jQuery Mobile swipe event
1231
jQuery Mobile scrollstop event
1230
jQuery Mobile scrollstart event
1229
jQuery Mobile pageshow event
1228
jQuery Mobile pageremove event
1227
1226
1225
1224
1223
1222
1221
1220
1219
1218
1217
1216
1215
1214
1213
1212
1211
1210
1209
1208
1207