Posts

Showing posts from October, 2020

AuraConditionalRendering

When Checkbox is true Education is displayed   <aura:application   extends = "force:slds" >      <aura:attribute   name = "variable"   type = "Boolean"   />      <lightning:input   aura:id = "Education"   type = "checkbox"                      label = "Education"                        name = "Education"   value = "Education"             onchange = "{!c.handleCheck}"   />                                <aura:if   isTrue = "{!v.variable}" >          <div> Se...

AuraLocales

 Locales <aura:application extends="force:slds">     {!$Locale.language}<br/>     {!$Locale.timezone}<br/>     {!$Locale.numberFormat}<br/>     {!$Locale.currencyFormat}<br/> </aura:application> ({     checkDevice: function(component) {     var locale = $A.get("$Locale.language");     alert("You are using " + locale);     } }) O/p en America/Los_Angeles #,##0.### ¤#,##0.00;(¤#,##0.00)

AuraAttributes

Binding attribute in Application <aura:application   extends = "force:slds" >      <aura:attribute   name = "value"   type = "String"   default = "World" />     Hello {!v.value}! </aura:application> O/p Hello  World ! Hello World example sending value from js to server as param and getting output. Apex public  with sharing  class   helloWorldwithParam  {      @AuraEnabled      public   static   String   serverEcho ( String   firstName ) {          return  ( 'Hello from the server, '  +  firstName );     } } Application <!-- Adding classname of apexclass -->  <aura:application controller="helloWorldwithParam" extends="force:slds">     <aura:attribute name="firstName" type="String" default="...