| Package | feathers.skins |
| Class | public class FunctionStyleProvider |
| Inheritance | FunctionStyleProvider Object |
| Implements | IStyleProvider |
| Product Version : | Feathers 2.0.0 |
applyStyles() is called.
In the following example, a FunctionStyleProvider is
created:
var button:Button = new Button();
button.label = "Click Me";
button.styleProvider = new FunctionStyleProvider( function( target:Button ):void
{
target.defaultSkin = new Image( texture );
// set other styles...
});
this.addChild( button );See also
| Property | Defined By | ||
|---|---|---|---|
| styleFunction : Function
The target Feathers UI component is passed to this function when
applyStyles() is called. | FunctionStyleProvider | ||
| Method | Defined By | ||
|---|---|---|---|
FunctionStyleProvider(skinFunction:Function)
Constructor. | FunctionStyleProvider | ||
applyStyles(target:IFeathersControl):void
Applies styles to a specific Feathers UI component, unless that
component has been excluded. | FunctionStyleProvider | ||
| styleFunction | property |
styleFunction:Function
The target Feathers UI component is passed to this function when
applyStyles() is called.
The function is expected to have the following signature:
function( item:IFeathersControl ):void
public function get styleFunction():Function public function set styleFunction(value:Function):void| FunctionStyleProvider | () | Constructor |
public function FunctionStyleProvider(skinFunction:Function)Constructor.
ParametersskinFunction:Function |
| applyStyles | () | method |
public function applyStyles(target:IFeathersControl):voidApplies styles to a specific Feathers UI component, unless that component has been excluded.
Parameters
target:IFeathersControl |