StackPanel.sendToItems

Syntax

sendToItems (value, params)

Parameters

value. Method name.

params. Parameters.

Description

The sendToItems method calls a specified method for all items of the component.

Example

To execute the example, create a StackPanel component named stackPanel and add elements to the component (see description of the StackPanel constructor). Add a button clicking which changes contents of component items:

var but1 = new PP.Ui.Button(

   {

        Content: "Change contents",

        ParentNode: document.getElementById("but1"),

        Click: changeContent

   })

function changeContent()

   {

         stackPanel.sendToItems("setContent", "Button")

   }

After executing the example clicking the Change Contents button sets a new content for all component items: the text Button.

See also:

StackPanel