Created
December 19, 2018 13:42
-
-
Save sohalloran/8a7ca40ff91f1bf7f783b583f23cb7e9 to your computer and use it in GitHub Desktop.
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
div .LARGE { | |
background : red; | |
} | |
div .MEDIUM { | |
background : green; | |
} | |
div .SMALL { | |
background : blue; | |
} |
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> | |
<h1>lwc-page</h1> | |
<div class={flexipageRegionWidth}> | |
{flexipageRegionWidth} | |
<c-slots> | |
<span slot="title">toast</span> | |
<span slot="body"> | |
<c-toast></c-toast> | |
</span> | |
</c-slots> | |
<c-slots> | |
<span slot="title">apex</span> | |
<span slot="body"> | |
<c-apex></c-apex> | |
</span> | |
</c-slots> | |
<c-slots> | |
<span slot="title">wire service</span> | |
<span slot="body"> | |
<c-wire record-id="001B000000D7NopIAF"></c-wire> | |
</span> | |
</c-slots> | |
<c-slots if:false={standalone}> | |
<span slot="title">pubsub demo</span> | |
<span slot="body"> | |
<c-pubsubleft></c-pubsubleft> === | |
<c-pubsubright></c-pubsubright> | |
</span> | |
</c-slots> | |
<c-slots> | |
<span slot="title">navigation demo</span> | |
<span slot="body"> | |
<c-nav></c-nav> | |
</span> | |
</c-slots> | |
<c-slots> | |
<span slot="title">lightning record form</span> | |
<span slot="body"> | |
<c-lrf record-id="001B000000D7NopIAF"></c-lrf> | |
</span> | |
</c-slots> | |
<c-slots> | |
<span slot="title">lightning record view form</span> | |
<span slot="body"> | |
<c-lrvf record-id="001B000000D7NopIAF"></c-lrvf> | |
</span> | |
</c-slots> | |
</div> | |
</template> |
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, api } from 'lwc'; | |
export default class Page extends LightningElement { | |
@api flexipageRegionWidth; | |
@api standalone = 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
<?xml version="1.0" encoding="UTF-8"?> | |
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="page"> | |
<apiVersion>45.0</apiVersion> | |
<isExposed>true</isExposed> | |
<targets> | |
<target>lightning__RecordPage</target> | |
<target>lightning__AppPage</target> | |
<target>lightning__HomePage</target> | |
</targets> | |
</LightningComponentBundle> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment