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

제이쿼리모바일 Button Widget Option enhanced icon iconpos iconshadow

· 8년 전 · 1619
제이쿼리모바일 Button Widget Option enhanced icon iconpos iconshadow

enhanced

Type: Boolean
Default: false

버튼 위젯에 필요한 마크 업이 원래 마크 업의 일부로 제공되었음을 나타냅니다.
이 옵션은 데이터 속성으로도 노출됩니다 data-enhanced="true".

코드 예제 :
지정된 enhanced옵션으로 버튼을 초기화하십시오 .


$( ".selector" ).button({
enhanced: true
});

enhanced초기화 후에 옵션을 가져 오거나 설정하십시오 .

// Getter
var enhanced = $( ".selector" ).button( "option", "enhanced" );

// Setter
$( ".selector" ).button( "option", "enhanced", true );

icon

Type: String
Default: null
아이콘 세트의 아이콘을 적용합니다.
.buttonMarkup () 문서는 기본 테마에서 사용할 수있는 모든 아이콘의 참조를 포함합니다.

이 옵션은 데이터 속성으로도 노출됩니다 data-icon="star".

코드 예제 :
지정된 icon옵션으로 버튼을 초기화하십시오 .

$( ".selector" ).button({
icon: "star"
});

icon초기화 후에 옵션을 가져 오거나 설정하십시오

// Getter
var icon = $( ".selector" ).button( "option", "icon" );

// Setter
$( ".selector" ).button( "option", "icon", "star" );

iconpos

Type: String
Default: "left"
버튼에 아이콘을 배치합니다. 가능한 값은 left, right, top, bottom, none, notext입니다. notext 값은 텍스트 피드백이없는 아이콘 전용 버튼을 표시합니다.
이 옵션은 데이터 속성으로도 노출됩니다 data-iconpos="right".

iconshadow

Type: Boolean
Default: false
이 옵션은 1.4.0에서 사용되지 않으며 1.5.0에서 제거됩니다.
true로 설정하면 버튼의 아이콘에 테마 그림자를 적용합니다.

이 옵션은 데이터 속성으로도 노출됩니다 data-iconshadow="true".

(더 이상 사용되지 않는 버전 : 1.4.0)

댓글 작성

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

로그인하기

게시글 목록

번호 제목
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