63 lines
2.7 KiB
Plaintext
63 lines
2.7 KiB
Plaintext
<aura:component >
|
|
<aura:attribute name="emailCustomSetting" type="Email_Addresses_to_send_error_CSV__c"/>
|
|
<aura:attribute name="rowIndex" type="String" default="0"/>
|
|
|
|
|
|
<aura:registerEvent name="DeleteRowEvt" type="c:DeleteRowEvt"/>
|
|
<aura:registerEvent name="AddRowEvt" type="c:AddNewRowEvt"/>
|
|
<aura:method name="validateData" action="{!c.validateDataController}"/>
|
|
|
|
<aura:registerEvent name="onError" type="ui:validationError" description="The event fired when validation errors occur." />
|
|
<aura:method name="ErrorMaillist" action ="{!c.validateDataController}" />
|
|
|
|
|
|
|
|
<tr class="{!v.expense.errormailfrmt ? 'color:red;slds-theme--success;slds-text-title_caps' : 'slds-text-title_caps'}">
|
|
<td width = "5%">
|
|
{!v.rowIndex + 1}
|
|
</td>
|
|
<!-- <td>
|
|
<ui:inputText class="slds-input" value="{!v.emailCustomSetting.Name}"/>
|
|
</td>-->
|
|
<td width = "95%" >
|
|
|
|
<lightning:input class="emailfieldstyle" required="true" variant= "label-hidden" type="email" aura:id="personEmail" placeholder="Email-Address" value="{!v.emailCustomSetting.Name }"/>
|
|
<!-- <ui:inputText class="slds-input" aura:id="personEmail" placeholder="Email-Address" value="{!v.emailCustomSetting.Name }"/>-->
|
|
<!--aura:If isTrue="{!v.emailCustomSetting.errormailfrmt}">
|
|
<div class="slds-form-element slds-has-error" style = "float:left;padding-top: 0px;border-top-width: 0px;">
|
|
|
|
<div class="slds-form-element__help" id="form-error-01" style = "font-size:10px; font-weight: bold; margin-top: 0px;"> *Please Enter valid mail id</div>
|
|
</div>
|
|
</aura:If-->
|
|
</td>
|
|
<td >
|
|
|
|
<aura:if isTrue="{!v.rowIndex == 0}">
|
|
<a onclick="{!c.addNewRow}">
|
|
<lightning:icon iconName="utility:add" class="slds-icon slds-icon_small" size="small" alternativeText="add"/>
|
|
<span class="slds-assistive-text">Add Icon</span>
|
|
</a>
|
|
<aura:set attribute="else">
|
|
<a onclick="{!c.removeRow}">
|
|
<lightning:icon variant="error" iconName="utility:delete" class="slds-icon slds-icon_small" size="small" alternativeText="icon"/>
|
|
<span class="slds-assistive-text">Delete Icon</span>
|
|
</a>
|
|
</aura:set>
|
|
</aura:if>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<aura:html tag="style">
|
|
.emailfieldstyle {
|
|
|
|
}
|
|
|
|
.slds-input[type=email] {
|
|
border-left: solid red ;
|
|
}
|
|
|
|
</aura:html>
|
|
|
|
|
|
</aura:component> |