Following snippets will describe the steps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------JS Code------ | |
var aura_id = "error-info"; | |
var ele = component.find(aura_id); | |
$A.util.removeClass(ele, "error-info-display-none"); | |
//for adding a style class use method - addClass | |
-------CSS code------ | |
.THIS .error-info-display-none { | |
display: none; | |
} | |
--------CMP Code------ | |
<div aura:id="error-info" class="error-info-display-none" role="alert" > | |
Error Message | |
</div> |
Comments
Post a Comment