svy-component-wrapper

Forum to discuss the new web client version of Servoy.

svy-component-wrapper

Postby Roberto Blasco » Wed Mar 23, 2016 8:58 pm

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

Code: Select all
<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
Code: Select all
{
   "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.
You do not have the required permissions to view the files attached to this post.
Un saludo. Roberto.

Madrid - Spain
Tfno: (+34) 625653066
E-mail: roberto.blasco.serrano@gmail.com
User avatar
Roberto Blasco
007
 
Posts: 355
Joined: Tue Apr 08, 2008 7:18 pm
Location: Madrid / Spain

Re: svy-component-wrapper

Postby Andrei Costescu » Thu Mar 24, 2016 10:53 am

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.
Code: Select all
child_component: {
  definition : {
    displaysTags : true,
    location : {
      x : 136,
      y : 25
    },
    name : "myNestedButton",
    size : {
      height : 20,
      width : 80
    }
  },
  typeName:"servoydefault-button"
}
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: svy-component-wrapper

Postby Roberto Blasco » Thu Mar 24, 2016 9:58 pm

Thanks a lot Adrei I am gonna try it.

BTW I am gonna case a case for this issue.

Best Regards. Roberto.
Un saludo. Roberto.

Madrid - Spain
Tfno: (+34) 625653066
E-mail: roberto.blasco.serrano@gmail.com
User avatar
Roberto Blasco
007
 
Posts: 355
Joined: Tue Apr 08, 2008 7:18 pm
Location: Madrid / Spain

Re: svy-component-wrapper

Postby Roberto Blasco » Mon Apr 04, 2016 1:34 pm

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

This is the link

https://support.servoy.com/browse/SW-46
Un saludo. Roberto.

Madrid - Spain
Tfno: (+34) 625653066
E-mail: roberto.blasco.serrano@gmail.com
User avatar
Roberto Blasco
007
 
Posts: 355
Joined: Tue Apr 08, 2008 7:18 pm
Location: Madrid / Spain


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 20 guests

cron