This file contains hidden or 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
| HTML | |
| <template> | |
| <lightning-card title="Novo Lead" icon-name="standard:lead"> | |
| <div class="slds-m-around_medium"> | |
| <lightning-input label="Nome" name="name" onchange={handleInputChange} class="slds-m-bottom_x-small"> | |
| </lightning-input> | |
| <lightning-input label="Sobrenome" name="sobrenome" onchange={handleInputChange} class="slds-required"> | |
| </lightning-input> | |
| <lightning-input type="text" label="Empresa" name="empresa" onchange={handleInputChange} class="slds-required"> |
This file contains hidden or 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
| HTML | |
| <template> | |
| <div class="app slds-p-around_x-large"> | |
| <h1 class="slds-text-heading_large">Exercício 2</h1> | |
| <lightning-input type="text" label="Primeiro Nome" name="primeiroNome" onchange={handleInputChange}> | |
| </lightning-input> |
This file contains hidden or 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
| HTML | |
| <template> | |
| <lightning-record-edit-form object-api-name="Lead" onsuccess={handleSuccess}> | |
| <lightning-messages></lightning-messages> | |
| <div class="slds-m-around_medium"> | |
| <lightning-input-field field-name="FirstName"></lightning-input-field> | |
| <lightning-input-field field-name="LastName"></lightning-input-field> | |
| <lightning-input-field field-name="Company"></lightning-input-field> | |
| <lightning-input-field field-name="Status"></lightning-input-field> |
This file contains hidden or 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
| ({ | |
| Somar : function(component, event, helper) { | |
| var a = component.get("v.n1"); | |
| var b = component.get("v.n2"); | |
| var total = parseInt(a) + parseInt(b); | |
| component.set("v.total",total); | |
| component.set("v.Somar",true); | |
| component.set("v.Subtrair",false); | |
| component.set("v.Multiplicar",false); | |
| component.set("v.Dividir",false); |
This file contains hidden or 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
| <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" > | |
| <aura:attribute name="n1" type="integer" /> | |
| <aura:attribute name="n2" type="integer" /> | |
| <aura:attribute name="total" type="integer" /> | |
| <aura:attribute name="Somar" type="boolean" default="false" /> | |
| <aura:attribute name="Subtrair" type="boolean" default="false" /> | |
| <aura:attribute name="Multiplicar" type="boolean" default="false" /> | |
| <aura:attribute name="Dividir" type="boolean" default="false" /> |