Documentation

function create()

Returns a builder modifier function that applies a render effect to a UI element.

function create<
T extends ViewBuilder & {
initializer: ViewBuilder.Initializer<any>;
},
>(name: EffectName, optional?: boolean): (builder: T) => T;

Notes

Parameters

Return value

A function that can be passed to UIElement.ElementBuilder.apply.

Errors

This method throws an error if the effect has not been registered.

Related