Skip to content

Instantly share code, notes, and snippets.

<aura:component implements="lightning:availableForFlowScreens" access="global">
<aura:attribute name="defaultRecordId" type="String" />
<aura:attribute name="defaultFieldName" type="String" />
<aura:attribute name="required" type="Boolean" default="false" />
<aura:attribute name="usePills" type="Boolean" default="true" />
<aura:attribute name="whereClause" type="String" />
<aura:attribute name="objectName" type="String" default="Opportunity" />
<aura:attribute name="displayFieldName" type="String" default="Name" />
<aura:attribute name="valueFieldName" type="String" default="Id" />
<aura:attribute name="label" type="String" />
<design:component label="Professor Flow - LookUp" >
<design:attribute name="objectName" label="I1_Object Name" />
<design:attribute name="displayFieldName" label="I2_Display Which Field?"/>
<design:attribute name="label" label="I3_Field Label" />
<design:attribute name="valueFieldName" label="I4_Output Which Field as Value?" />
<design:attribute name="parentChild" label="I5_'Parent' or 'Child' Lookup?" />
<design:attribute name="filterFieldName" label="I6_Filter on which field?" />
<design:attribute name="filterFieldValue" label="I7_Filter Value" />
<design:attribute name="selectedValue" label="O1_Output Value" />
<!--
Copyright 2017 OpFocus, Inc
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
<!--
Copyright 2017 OpFocus, Inc
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
/*
Copyright 2017 OpFocus, Inc
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
<!--
datatableFSC Lightning Flow Screen Component
Enhanced by Eric Smith - 3/9/19
Version: 2.7 (11/30/19)
4/8/19 - ers New parameter to Show/Hide Checkboxes
New parameter for # of selectable rows (Set number of selectable rows to 1 for Radio Buttons)
Provide an input collection to the Output Selected parameter to pre-select rows
11/27/19 - bkv Editable Columns (Save changes in Flow)
<design:component label="Lightning DataTable - Time Slots" >
<!-- CHANGE THE OBJECT NAMES HERE AND IN THE CMP FILE TO SUPPORT DIFFERENT OBJECTS -->
<design:attribute name="mydata_standard1" label="Collection - Time Slots"/>
<design:attribute name="selectedRows_standard1" label="Output Selected Time Slots"/>
<design:attribute name="column01_icon" label="Column01_iconName"/>
<design:attribute name="column01_label" label="Column01_label"/>
<design:attribute name="column01_fieldName" label="Column01_fieldName"/>
<design:attribute name="column01_type" label="Column01_type"/>
({
init: function (cmp, event, helper) {
// Maximum Row Selection
if(cmp.get('v.singleSelection') == '1') {
cmp.set('v.maxRowSelection','1')
}
// Hide Checkbox Column
if(cmp.get('v.hideShow').toLowerCase() == 'hide') {
<template>
<lightning-layout multiple-rows="true">
<template for:each={items} for:item="item">
<lightning-layout-item class="slds-m-around_xxx-small" key={item.uniqueId}>
<div class="slds-visual-picker" tabindex="0" onkeyup={handleKeyUp} data-outputlabel={item.label}
data-outputsublabel={item.sublabel} data-outputvalue={item.value} data-outputunique={item.uniqueId}>
<input type="radio" onclick={handleChange} name="visualList" id={item.uniqueId} tabindex="-1"
title={item.label} value={item.value} data-outputlabel={item.label} data-outputsublabel={item.sublabel}
data-outputvalue={item.value} data-outputunique={item.uniqueId} />
<label for={item.uniqueId}>
import {
LightningElement,
api,
track
} from "lwc";
import {
FlowAttributeChangeEvent
} from "lightning/flowSupport";
import {
FlowNavigationNextEvent