Skip to content

Instantly share code, notes, and snippets.

@ketan-benegal
Created March 15, 2019 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ketan-benegal/09e3074c9f2e4bc116673f41c1f428ad to your computer and use it in GitHub Desktop.
Save ketan-benegal/09e3074c9f2e4bc116673f41c1f428ad to your computer and use it in GitHub Desktop.
<template>
<lightning-card title="HelloWorld" icon-name="custom:custom14">
<div class="slds-m-around_medium">
<p>Hello, {upperCaseName}!</p>
<lightning-input name="last_name" label="Last Name" onchange={changeHandler}></lightning-input>
<template if:false={showLastNameOnly}>
<div>
<lightning-input name="first_name" label="First Name" onchange={changeHandler}></lightning-input>
</div>
</template>
<lightning-input type="checkbox" label="Show Last Name only" onchange={handleCheckBox}></lightning-input>
</div>
</lightning-card>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment