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
| 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
| import { LightningElement } from "lwc"; | |
| export default class App extends LightningElement { | |
| title = "account"; | |
| account = { | |
| name : 'Cristiano lionel santos junior', | |
| type: 'other', | |
| rating: 'hot', | |
| site :'https://gist.github.com/gregorihedro/559a277b962f0a90af5bae926f2a2fde', |
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
| <template> | |
| <div class="app slds-p-around_x-large"> | |
| <h1 class="slds-text-heading_large"><u>{title}</u></h1><br> | |
| <p>nome:{account.name}</p> | |
| <hr> | |
| <p>tipo:{account.type}</p> |
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
| import { LightningElement } from "lwc"; | |
| export default class App extends LightningElement { | |
| title = "Welcome to Lightning Web Components!"; | |
| nome = "gregori"; | |
| telefone = "288278379"; | |
| cpf = "98478373687" | |
| idade = 20; | |
| email = "gregorihedro@gmail.com"; |
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
| <template> | |
| <lightning-card> | |
| <div class='slds-m-around_medium' if:true={visible}> | |
| <h1 class="slds-text-heading_large"> | |
| dados | |
| <hr> | |
| </h1> | |
| <p>Nome : {nome}</p> |
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
| p1{ | |
| color:black; | |
| font-family: Georgia, 'Times New Roman', Times, serif; | |
| } | |
| h2{ | |
| color:black; | |
| font-family: Georgia, 'Times New Roman', Times, serif; | |
| } | |
| p2{ | |
| color:black; |
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
| <!DOCTYPE html> | |
| <html lang="pt-br"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| </head> | |
| <link rel="stylesheet" href="tamyg.css" type="text/css"> | |
| <title>Cursos</title> | |
| </head> |
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
| @isTest | |
| public class CalculadoraTest { | |
| //Metódos ou Variações de Cenários | |
| @isTest | |
| public static void testarSoma(){ | |
| //Como é que a gente se certifica que o metodo soma está realmente funcionando | |
| Decimal resultado = Calculadora.somar(1,2); | |
| System.assertEquals(3, resultado, 'Se somar não está funcionado'); | |
| } | |
| @istest |
NewerOlder