15

I want to create a lightning component to be used on the lightning page. In the component I want to have a placeholder for other components, so the user can add other components per via drag and drop in the lightning app builder. Is it possible?

PS: There is a standard component "tabs" that have exactly that what I want. Can I do it on the custom lightning component?

enter image description here

3
  • For we cannot do so. You can create a attribute with type as "Aura.component[]" and then add that attribute in design of component you will see a error "Failed to save TestComp.design: The flexipage:availableForAllPageTypes interface doesn't support these attribute types in the design resource: component[]." Commented Mar 28, 2018 at 12:37
  • @ManjotSingh Yes, that attribute can be used only in the lightning TEMPLATE components. I want to develop a normal lightning component for the lightning page. Commented Mar 28, 2018 at 13:44
  • 2
    for what its worth, i know this Idea has been listed for a while Drag communities components into other components in Community Builder
    – glls
    Commented Mar 30, 2018 at 20:34

1 Answer 1

11
+200

You cannot at the moment (or at least there is no documented way of doing so), the only components that support drag and drop placeholder/regions are the following:

  1. custom theme layouts
  2. custom templates

the following Ideas are still pending approval for making this feature available:

and as far as the aura frameworks components go, it looks like this may be made available some time in the future since there are several drag and drop reference components under development which can be seen on the forcedotcom GitHub Repo. Unfortuantely, I cant provide any insight on how far up in the list of priorities this is.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .