svy-component-wrapper

Hi all

I’m trying to build a component with a component child inside, after fighting many hours I don’t know how to follow …

This is my html file in the component

<div style="padding-left:15px;">
	<div class="panel panel-default">
		<div class="panel-heading clearfix">
			<h3 class="panel-title">Perfil</h3>
		</div>
		<div class="panel-body">
			<div style="margin-top:30px;margin-bottom:30px;">
				<svy-component-wrapper component-property-value="child_component"></svy-component-wrapper>
			</div>
		</div>
	</div>
</div>

this is my spec file in the component

{
	"name": "globalpet-frmt900perfiles",
	"displayName": "frm_t900_perfiles",
	"version": 1,
	"definition": "globalpet/frmt900perfiles/frmt900perfiles.js",
	"libraries": [],
	"model":
	{
		"child_component" : {"type": "component"}
	}
}

How can I tell the component the child component I want to use?
How can I assign methods and properties?

The goal is to insert the valuelist component as child of the first component.

Best Regards. Roberto Blasco.

There was a problem in 8.0.2 that you couldn’t drag & drop children into the parent component.
It should work with 8.0.3 as that was fixed. But can you please create a case for the outline view? That one is still as shown in the picture and it should work from there as well.

For now it would work only if you manually add it in the .frm file I guess - in the parent component’s properties.

child_component: {
  definition : {
    displaysTags : true,
    location : {
      x : 136,
      y : 25
    },
    name : "myNestedButton",
    size : {
      height : 20,
      width : 80
    }
  },
  typeName:"servoydefault-button"
}

Thanks a lot Adrei I am gonna try it.

BTW I am gonna case a case for this issue.

Best Regards. Roberto.

I forgot to do the case … :oops: :oops:

This is the link