제이쿼리 모바일 checkboxradio widget - option -> initSelector 정보
jQuery Mobile 제이쿼리 모바일 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 위젯을 인스턴스화합니다.
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 위젯을 인스턴스화합니다.
추천
0
0
댓글 0개