2017-03-29 16 views
0

Google의 소재 디자인 라이트 프레임 워크 내가이 HTML을 페이지가로드 된 다음 언젠가로드 할 때 라이브러리가로드되기 전에이 HTML이 존재하면 내가하는 것처럼 좋은 작은 전환이 표시되지 않습니다.Google MDL Lite : Progmmatically 체크 박스 나 스위치를 초기화 할 수 있습니까?

https://getmdl.io/components/index.html#toggles-section

<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-1"> 
    <input type="checkbox" id="switch-1" class="mdl-switch__input" checked> 
    <span class="mdl-switch__label"></span> 
</label> 

나는 그들이 나타나는 요소를 초기화하기 위해서 실행할 수있는 기능이있다? 나는 나의 유일한 결과 :(의 .js 파일을 읽어 registered 구성 요소를 업데이트하는 방법을

답변

0

을 발견 실패로 시간 동안 검색 한.

componentHandler.upgradeAllRegistered()