Revision history [back]

click to hide/show revision 1
initial version

asked 2015-01-27 14:33:41 +0800

sathishk gravatar image sathishk

How to set Children's through div and a tag.

Hai,

This is My Zul file

<template name="children" var="node"> <h:li> </h:li> </template>

I need to set children's by using @wire Div and A tag, Please help me i am new at Zk.

I am trying this way,it's not working please help me : @Wire A showsImages; @Wire Div monthsDiv;

Div div = new Div(); A a = new A(filename.toString()); a.setParent(div); showsImages.setLabel(filename.toString()); div.setParent(showsImages);

I am getting value on filename.toString(),but setting by @Wire variable not working.

How to set Children's through div and a tag.

Hai,

This is My Zul file

<div id="monthsDiv" children="@bind(vm.months)">
    <template name="children" var="node">
var ="node">
        <h:li>
              <a id="showsImages" sclass="activator" onClick="@command('showImages', ref=self.label, iref = self.uuid )" label="@bind(node.mName)"> </a>
        </h:li>
    </template>
</div>

I need to set children's by using @wire Div and A tag, Please help me i am new at Zk.

I am trying this way,it's not working please help me : :

@Wire
A showsImages;
@Wire
Div monthsDiv;

monthsDiv;

Div div = new Div(); A a = new A(filename.toString()); a.setParent(div); showsImages.setLabel(filename.toString()); div.setParent(showsImages);

div.setParent(showsImages);

I am getting value on filename.toString(),but setting by @Wire variable not working.

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More