728x90
$A. get('e. force:refreshView'). fire(); 을 통해서 리프레쉬 뷰를 시켜줬지만 기존 토글이 그대로 켜진채로 있어서 아래의 방법을 찾게되었다.
Component
<lightning:input type="toggle" label="toggle" name="input1" class="toggle slds-float_right slds-p-left_x-small" aura:id="toggle01" />
Controller
해당 토글 값을 셋팅 시켜주고 싶은 Funtion안에 해당 값 넣기
component.find("toggle01").set("v.checked", false);
728x90
'개발' 카테고리의 다른 글
[맥OS 필수 셋팅 추천] HomeBrew (0) | 2022.08.02 |
---|---|
[Salesforce] CANNOT_REPARENT_RECORD, owner is inactive, cannot reparent record (0) | 2022.07.27 |
Salesforce Summer 22 -> Report (보고서) 내 필드 업데이트 & 편집 가능 추가 (0) | 2022.06.14 |
System.TypeException: Invalid conversion from runtime type String to Integer (0) | 2022.04.13 |
var, const, let의 차이점 (0) | 2022.04.06 |