Skip to content
seanhess edited this page Sep 13, 2010 · 4 revisions

You can use the Behavior tag to generate a new instance of a behavior for each target. It will automatically set the “target” property on the generated class if it can.

As an alternative, you can replace the behavior tag with an actual instance of the behavior.

Example

Demo
/ Source

Usage

<BehaviorMap target="{this}">
	<Selector match="#button">
		<Behavior generator="{MyBehaviorClass}" property="value"/>
	</Selector>
</BehaviorMap>
Clone this wiki locally