anusha(salesforce developer)

Wednesday 19 April 2017

Example for Aura Lightining

expressions: 
{! }
{!v.}
{!c.}
{! this}

Applying CSS
-------------------

Example  1 :Creating a component :

Component : 
<aura:component >
<h1> This is my data </h1>
</aura:component>

Application :

<aura:application >
<c:Cap1></c:Cap1>
</aura:application>


Example 2: Applying CSS on component :

<aura:component>
  <div class="white">
    Hello, HTML!
  </div>
  
  <h2>Check out the style in this list.</h2>
  
  <ul>
    <li class="red">I'm red.</li>
    <li class="blue">I'm blue.</li>
    <li class="green">I'm green.</li>
  </ul>
</aura:component>

Style :
.THIS {
    background-color: grey;
}

.THIS.white {
    background-color: white;
}

.THIS .red {
    background-color: red;
}

.THIS .blue {
    background-color: blue;
}

.THIS .green {
    background-color: green;
}



Example :3: Creating attributes  for a component

Component Name: first1

<aura:component >
    <aura:attribute name="name" type="String" default="cyan" />
    {! v.name}
</aura:component>


Application :

<aura:application >
<c:first1></c:first1>
</aura:application>

4 comments:

  1. CBO ERP Ltd provides a best pharma distribution billing software will also help to create reports for each aspect of distribution such as:
    • Register (Brief/Summary)
    • Sales & Purchase Register
    • Stock Transfer Issue Register
    • Sales Return
    • Purchase Return
    • Stock Report
    • C & F Wise Stock Consolidated
    • Stock Ledger A.R NO (Item/Batch Wise)
    • Cost Sheet.
    • Material receipt generation

    The software for pharma distributors provides a fast and foolproof platform to collect, manage, and improve sales data from different distributors and retailers located nationwide.
    https://www.cboerp.com/pharmaceutical-distribution-software.php

    ReplyDelete

  2. CBO parma ERP software is very basic software for any Pharmaceutical Manufacturing companies to manage their all records in a user friendly manner by any small and mid-sized pharmaceutical manufacturing ERP companies and other sector companies. Parma ERP software includes billing, accounting, inventory control and complete sales force. CBO ERP creates all types of softwares used in pharma industries and the software made for all solutions.
    https://cboerp.com/pharma-erp-software.php

    ReplyDelete