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 title="Informações oppsdaconta"> | |
<div class="slds-p-around_medium"> | |
<p>Id: {id} </p> | |
<p>Nome: {nome} </p> | |
<p>Valor: {valor} </p> | |
<p>Fase: {fase} </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
-css- | |
h1 { | |
color: rgb(0, 112, 210); | |
} | |
p { | |
font-family: 'Salesforce Sans', Arial, sans-serif; | |
color: rgb(62, 62, 60); | |
} | |
.app { | |
background-color: #fafaf9; |
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 { | |
visivel= true; | |
obj = { | |
poke1Card: " https://img.playbuzz.com/image/upload/ar_1.5,c_pad,f_jpg,b_auto/q_auto:good,f_auto,fl_lossy,w_640,c_limit,dpr_1/cdn/5dd1da62-7fad-4065-ac16-928d743a2176/7af3b478-4cfa-4fce-8c24-af07c24c38c5.jpg", | |
poke2Card: " https://img.playbuzz.com/image/upload/ar_1.5,c_pad,f_jpg,b_auto/q_auto:good,f_auto,fl_lossy,w_640,c_limit,dpr_1/cdn/5dd1da62-7fad-4065-ac16-928d743a2176/98a48255-bedb-46d7-8f6e-a54229d3c75d.jpg", | |
} | |
onClick(){ | |
this.visivel = !this.visivel; |
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 title="Quem é esse pokemon?"> | |
<template if:true={visivel}> | |
<div class="slds-p-around_medium"> | |
<img src={obj.poke1Card} onclick={onClick}/></br> | |
</div> | |
</template> | |
<template if:false={visivel}> | |
<div class="slds-p-around_medium"> | |
<img src={obj.poke2Card} onclick={onClick}/><br/> |
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
h1 { | |
color: rgb(0, 112, 210); | |
} | |
p { | |
font-family: 'Salesforce Sans', Arial, sans-serif; | |
color: rgb(62, 62, 60); | |
} | |
.app { | |
background-color: #fafaf9; | |
height: 100vh; |
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
-app.css- | |
h1 { | |
color: rgb(0, 112, 210); | |
} | |
p { | |
font-family: 'Salesforce Sans', Arial, sans-serif; | |
color: rgb(62, 62, 60); | |
} | |
.app { | |
background-color: #fafaf9; |
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
h1 { | |
color: rgb(0, 112, 210); | |
} | |
p { | |
font-family: 'Salesforce Sans', Arial, sans-serif; | |
color: rgb(62, 62, 60); | |
} | |
.app { | |
background-color: #fafaf9; | |
height: 100vh; |
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 { | |
visivel = true; | |
empresa = "NASA"; //string | |
cnpj = 123456789; //number | |
endereco = 'Recife, Pernambuco'; //string | |
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 title="Atvdd Básica"> | |
<template if:true={visivel}> | |
<div class="slds-p-around_medium"> | |
<h1>Div One </h1> | |
<p> Empresa: {empresa} </p> | |
<p> CNPJ: {cnpj} </p> | |
<p> Endereço: {endereco} </p> | |
</div> |
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
({ | |
getAccounts : function(component) { | |
let action = component.get("c.getListAccount"); | |
action.setCallback(this, function(response){ | |
let state = response.getState(); | |
console.log(state); | |
if(component.isValid() && state == "SUCCESS"){ | |
console.log(response.getReturnValue()); | |
component.set("v.accs", response.getReturnValue()); |