IT/제이쿼리모바일

제이쿼리모바일 button widget option theme 테마

조원태 2017. 2. 19. 23:49
반응형

제이쿼리모바일 button widget option theme 테마


Type: String

Default: null, inherited from parent


버튼 위젯의 색표 (견본)를 설정합니다. 테마에 포함 된 견본에 매핑되는 az의 단일 문자를 허용합니다.

가능한 값 : 견본 문자 (az).


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


코드 예제 :

지정된 theme옵션으로 버튼을 초기화하십시오 .



$( ".selector" ).button({

  theme: "b"

});


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


// Getter

var theme = $( ".selector" ).button( "option", "theme" );

 

// Setter

$( ".selector" ).button( "option", "theme", "b" );

반응형