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
({ | |
handleCaptured : function(component, event, helper) | |
{ | |
console.log('Captured signature') | |
let flowAction=null; | |
let availableActions=component.get('v.availableActions'); | |
console.log('Available actions = ' + availableActions); | |
for (let idx=0; idx<availableActions.length && null==flowAction; idx++) { | |
let availAction=availableActions[idx]; | |
if ('NEXT'==availAction) { |
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
<aura:component implements="lightning:availableForFlowScreens"> | |
<aura:attribute access="global" name="startMsg" type="String" default="Click the 'Capture Signature' button to begin" | |
description="Message to display to the user to start the signature capture process"/> | |
<aura:attribute access="global" name="enterMsg" type="String" default="Sign here please" | |
description="Text to display above the signature capture canvas" /> | |
<aura:attribute access="global" name="completeMsg" type="String" default="Here is the captured signature" | |
description="Text to display above the image of the captured signature once it has been saved to the server"/> | |
<aura:attribute access="global" name="recordId" type="String" | |
description="The id of the record to attach the signature to"/> | |
<aura:attribute access="global" name="saveAttachment" type="Boolean" default="true" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="animatedBar"> | |
<apiVersion>45.0</apiVersion> | |
<isExposed>true</isExposed> | |
<targets> | |
<target>lightning__AppPage</target> | |
<target>lightning__RecordPage</target> | |
<target>lightning__HomePage</target> | |
</targets> | |
</LightningComponentBundle> |
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
/* eslint-disable no-console */ | |
import { LightningElement, track } from 'lwc'; | |
export default class AnimatedBar extends LightningElement { | |
@track value = 0; | |
handleInputValueChanged(event) { | |
window.clearTimeout(this.delayTimeout); | |
const final = event.target.value; |
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> | |
<div class="slds-m-around_small"> | |
<div class="slds-text-heading_large slds-m-bottom_small">Progress Bar Demo</div> | |
<div class="slds-m-bottom_large"> | |
<label>Enter value : <lightning-input type="number" name="seven" value="0" placeholder="Enter the amount..." onchange={handleInputValueChanged}></lightning-input></label> | |
</div> | |
<div> | |
<div style="width:25%" class="slds-progress-bar slds-progress-bar_circular slds-progress-bar_large" | |
aria-valuemin="0" aria-valuemax="100" aria-valuenow={amount} role="progressbar"> | |
<span class="slds-progress-bar__value" style={width}> |
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
#!/usr/local/bin/node | |
var fs=require('fs'); | |
var child_process=require('child_process'); | |
var username='keir.bowden@sfdx.deploy'; | |
var deployParams=['force:mdapi:deploy', '-d', 'Orchestrate/src', | |
'-u', username, '--json']; |
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
#!/usr/local/bin/node | |
var fs=require('fs'); | |
var child_process=require('child_process'); | |
var username='keir.bowden@sfdx.deploy'; | |
var deployParams=['force:mdapi:deploy', '-d', 'src', | |
'-u', username, '--json']; |
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
#!/usr/local/bin/node | |
var fs=require('fs'); | |
var child_process=require('child_process'); | |
var username='keir.bowden@sfdx.deploy'; | |
var deployParams=['force:mdapi:deploy', '-d', 'src', | |
'-u', username, '--json']; |
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "build", | |
"command": "node", | |
"args": [ | |
"deploy.js" | |
], | |
"problemMatcher": [ { |
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
#!/usr/local/bin/node | |
var fs=require('fs'); | |
var child_process=require('child_process'); | |
var username='keir.bowden@googlemail.com'; | |
var deployParams=['force:mdapi:deploy', '-d', 'src', | |
'-u', username, '--json']; |
NewerOlder