This file contains 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
function isValidSfId(str) { | |
// https://stackoverflow.com/a/29299786/1333724 | |
if (typeof str !== 'string' || str.length !== 18) { | |
return false; | |
} | |
let upperCaseToBit = (char) => char.match(/[A-Z]/) ? '1' : '0'; | |
let binaryToSymbol = (digit) => digit <= 25 ? String.fromCharCode(digit + 65) : String.fromCharCode(digit - 26 + 48); | |
let parts = [ |
This file contains 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> | |
<p class="slds-truncate slds-p-horizontal_x-small" title={value}> | |
<lightning-formatted-rich-text value={value} ></lightning-formatted-rich-text> | |
</p> | |
</template> |
This file contains 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
.image | |
{ | |
height: 1.5rem; | |
width: auto; | |
} |
This file contains 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> | |
<!-- Embed custom datatable component in your parent component --> | |
<c-custom-datatable | |
key-field="Id" | |
data={toggleExampleData} | |
hide-checkbox-column | |
columns={toggleExampleColumns} | |
onselectedrec={handleSelectedRec}> | |
</c-custom-datatable> | |
</template> |
This file contains 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> | |
<!-- Embed stencil component in your parent component --> | |
<c-stencil iterations="4" type="feed" columns="2"></c-stencil> | |
<c-stencil iterations="4" columns="2"></c-stencil> | |
</template> |