flex-users / flexlib

Open Source Flex components library.
github.com/flex-users/flexlib
MIT License
206 stars 88 forks source link

WIndowshade HeaderRenderer #275

Open nicoulaj opened 13 years ago

nicoulaj commented 13 years ago

Originally filed by shameers...@gmail.com on 2010-02-12T20:14:20

What steps will reproduce the problem?

  1. Create a Windowshade with a canvasbutton as its headerRenderer
  2. Try to pass data to the header renderer. There is no headerText or data property

What is the expected output? What do you see instead? User should be able to pass data to header renderer through the data property. Not able to pass data to header renderer

What version of the product are you using? On what operating system? flex-lib 1.1, on windows xp

Please provide any additional information below.

I am trying to create a re-usable windowshade with a canvas button as its headerRenderer. Is it possible to pass data to canvas button as if we do for itemrenderers and header renderers in list based controls, using the data property.

nicoulaj commented 13 years ago

Updated by fisherne...@googlemail.com on 2010-04-07T09:45:42

Hi shameersalim,

I think I know what you are talking about.

In order to pass data to the components in the header renderer you need to do this:

  1. --> you set the data on the window shade level.
  2. You access it in the renderer like this:
nicoulaj commented 13 years ago

Updated by edwardan...@gmail.com on 2010-07-29T20:50:58

Hello, I was wondering if the solution proposed above works...It does not appear to work for me. Well, I am getting a warning

warning: unable to bind to property 'parent' on class 'com.blah.view.browse.skin::FileNameInnerClass0'

where I am referencing the data value {WindowShade(parent).data}

from the parent WindowShade tag

should WindowShade(parent) be parentDocument (Flex 4)?

thanks

Edward