function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Caleb KuesterCaleb Kuester 

Visualforce component in a Lightning component?

Greetings!

I am still new to this and I am trying to add a MultiselectPicklist visualforce component into a lightning component using the following syntax: 
<c:MultiselectPicklist leftLabel="Available Contacts"
                leftOptions="{!allContacts}"
                rightLabel="Selected Contacts"
                rightOptions="{!selectedContacts}"
                size="14"
                width="150px"/>

The error within my lightning app reads: "Failed to save undefined: No COMPONENT named markup://c:MultiselectPicklist found : [markup://c:OpportunityTeamBox]"

The Multiselect Picklist is installed as a package. 

From what I understand, using a component in lightning follows a similar syntax to using a component in visualforce. A lightning developer, I'm sure, will instantly be able to spot the problem, but I'm not able to search for a solution to being able to use a multiselect picklist in lightning. 

If anybody has suggestions, I would be happy to see 'em. 
Best Answer chosen by Caleb Kuester
sfdcMonkey.comsfdcMonkey.com
hi Caleb Kuester
you can not use visualforce component in lightning component
i hop it helps you
Thanks :)

All Answers

sfdcMonkey.comsfdcMonkey.com
hi Caleb Kuester
you can not use visualforce component in lightning component
i hop it helps you
Thanks :)
This was selected as the best answer
Caleb KuesterCaleb Kuester
That did help and that was the main question that I had asked. These sorts of answers can be readily found in Google, except for with Salesforce, oddly.

Do you know if there is a multiselect picklist that can be used in Lightning? 
Guillaume Minero 8Guillaume Minero 8
you can create  a You can create a drop-down list using ui:inputSelect as specified in https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ui_select.htm