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'; | |
import { NavigationMixin } from 'lightning/navigation'; | |
import { subscribe } from 'lightning/empApi'; | |
export default class CustomDataTable extends NavigationMixin(LightningElement) { | |
data = [ | |
// data table data | |
]; | |
columns = [ | |
// other data table column definitions, |
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-input-rich-text value={value} onkeydown={handleKeyDown}></lightning-input-rich-text> --> | |
<c-custom-input value={value} onkeydown={handleKeyDown}></c-custom-input> | |
</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 } from 'lwc'; | |
export default class TestRichInput extends LightningElement { | |
value = ` | |
<table> | |
<thead> | |
<tr> | |
<td>Header 1</td> | |
<tr> | |
<tr> |
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 { api } from 'lwc' | |
import LightningInputRichText from 'lightning/inputRichText'; | |
export default class CustomInput extends LightningInputRichText { | |
@api | |
getContent() { | |
console.log('get content'); | |
return this.value; | |
} |
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
{ | |
"landing-pages": [{ | |
"path": "index.html", | |
"apex-controller": "Namespace.ControllerName" | |
}] | |
} |
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
global class DownloadAttachments { | |
/** | |
* Send out the startup object attachments to the specified email and save it as the activity | |
* @param {String} startupId The Id of the target startup object, which files we should attach to the email | |
* @param {String} emailAddress The email address of the recipient | |
*/ | |
global static void download(String startupId, String emailAddress) { | |
Messaging.SingleEmailMessage message = new Messaging.SingleEmailMessage(); | |
// Set the recipient address | |
message.setToAddresses(new String[] { emailAddress }); |
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
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ | |
/** | |
* 1. Set default font-family to sans-serif | |
* 2. Prevent iOS and IE text size adjust after device orientation change | |
* without disabling user zoom. | |
*/ | |
html { | |
font-family: sans-serif; /* 1 */ | |
-ms-text-size-ajust: 100%; /* 2 */ |
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 class="container"> | |
<nav class="nav"> | |
<img src="https://digitalflask.com/img/digital-flask.svg" /> | |
<span class="nav-links"> | |
<a href="#">Home</a> | |
<a href="#">TTT18</a> | |
</span> | |
</nav> | |
</div> | |
<div class="container"> |
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 { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { UrlSerializer } from '@angular/router'; | |
import { AppComponent } from 'app/app.component'; | |
import { CustomUrlSerializer } from './custom-url-serializer'; | |
@NgModule({ | |
imports: [ |
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 { UrlSerializer, UrlTree, DefaultUrlSerializer } from '@angular/router'; | |
export class CustomUrlSerializer implements UrlSerializer { | |
parse(url: any): UrlTree { | |
const dus = new DefaultUrlSerializer(); | |
return dus.parse(unescape(url)); | |
} | |
serialize(tree: UrlTree): any { | |
const dus = new DefaultUrlSerializer(); |
NewerOlder