Skip to content

Instantly share code, notes, and snippets.

View gregorihedro's full-sized avatar

gregori hedro gregorihedro

  • SoulCode Academy
  • brasil
View GitHub Profile
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>
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>
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">
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',
<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>
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";
<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>
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;
<!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>
@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