- ๐ Hi, Iโm Caspar
rapsacnz / dualselect Goto Github PK
View Code? Open in Web Editor NEWA two column option selector. Similar to the Duelling Picklist built in lightning component. Aura.
License: The Unlicense
A two column option selector. Similar to the Duelling Picklist built in lightning component. Aura.
License: The Unlicense
Great component. I am trying to implement into my project and I noticed a possible defect. If you drag any item in a given ordered list from top to bottom, it duplicates the item, instead of moving it:
https://www.screencast.com/t/PPjBD4HlDx4
Any ideas where I can fix this?
While deploying to Org. it throws error.
Error UNKNOWN_EXCEPTION: Unable to handle Aura Definition 'OrderedList.cmp': filepath not expected
I've added the DualSelect
component to a wrapper component:
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global">
<aura:attribute name="leftValues" type="Object[]" access="public" default="[]" />
<aura:attribute name="rightValues" type="Object[]" access="public" default="[
{
'label': 'Annual Review',
'value': 'Annual Review'
},
{
'label': 'Initial Contact',
'value': 'Initial Contact'
},
{
'label': 'Application',
'value': 'Application'
}]" />
<aura:handler name="init" action="{!c.doInit}" value="{!this}" />
<div class="slds">
<div class="slds-box">
<c:DualSelect fieldName="Skills" leftValues="{!v.leftValues}" rightValues="{!v.rightValues}" />
</div>
</div>
</aura:component>
({
doInit : function(component, event, helper) {
var leftValues = component.get("v.leftValues");
leftValues.push({
'label': 'Annual Review',
'value': 'Annual Review'
});
component.set("v.leftValues", leftValues);
}
})
The right side shows the 3 initial values OK, but the left side does not. If I inspect the leftSide
attribute, the values are in there, but the component doesn't seem to know about them, or at least fails to update the UI with those values.
Do I have to fire an event to get them show up? If so, would you mind providing an example?
Thanks again!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.