Help with setting a published property in a nested control

Hi,

in the example app included in bootplate.2.4, the app has a view:

enyo.kind({
    name: "myapp.Application",
    kind: "enyo.Application",
    view: "myapp.MainView"
});
In the kind "myapp.MainView" I have included a panel:

    components:[
        {kind: "onyx.Toolbar", content: "PIM"},
        {name: "paneles", kind: "Panels",
            components: [
                {name: "principal", kind: "k_Principal"},
                {name: "itemss", kind: "k_Items"}
            ]
It works, because I can change panels with:

    app.view.$.paneles.setIndex(1)
In the "k_Items" kind, I declared a published property:

    published: {
        titu: ""
    },
But I don't know how to set "titu".

I tried calls like:

app.view.$.paneles.itemss.setTitu('a')
app.view.$.paneles.$.itemss.setTitu('a')
but they did not work.

The errors are:
app.view.$.paneles.itemss is undefined
app.view.$.paneles.$.itemss is undefined

I am trying to set it from a function defined outside of any kind.

How should it be done?

Thanks.

Comments

Sign In or Register to comment.