Sets styles on a Feathers UI component by passing the component to a callback function when the style provider's applyStyles() method is called.

In the following example, a FunctionStyleProvider is created:

var button = new Button();
button.text = "Click Me";
button.styleProvider = new FunctionStyleProvider(function(target:Button):Void
{
	target.backgroundSkin = new Bitmap(bitmapData);
	// set other styles...
});
this.addChild(button);
Available since

1.0.0

.

See:

Constructor

new (?callback:Dynamic ‑> Void)

Variables

callback:Dynamic ‑> Void

The function that is called when this style provider is asked to apply styles to a target object.

Available since

1.0.0

.

Methods