StripeDecorator<TStripeextends IStripe>
Helps in decorating the lookup method of IStripe instances by providing access to decorators for the most common types.
Remarks
Predefined LookupDecorator<TDecoratedType,TInterface> are made available through properties like e.g. positionHandlerDecorator. Note that the list of possible decorations that are available using this class is not exhaustive in any way. This is merely a way to provide access to those interfaces that are more commonly being decorated by the developer.
Typically, a configured instance of this class is available through columnDecorator and rowDecorator on the TableDecorator which is returned by decorator on an ITable.
This decorator can be used to conveniently decorate the lookup of IStripes in an ITable. It serves as a factory for predefined LookupDecorator<TDecoratedType,TInterface> instances that are specifically useful for the IStripe type.
Type Parameters
- TStripe: IStripe
Type Details
- yfiles module
- view-table
- yfiles-umd modules
- view-table, view
- Legacy UMD name
- yfiles.graph.StripeDecorator
See Also
Constructors
Initializes a new instance of the StripeDecorator<T> class.
Parameters
A map of options to pass to the method.
- type - Class
- decorator - ILookupDecorator
- The decorator to use, which can be
null
.
Properties
Gets a LookupDecorator<TDecoratedType,TInterface> that decorates the IEditLabelHelper type for the TStripe
s this instance has been created for.
Remarks
Gets a LookupDecorator<TDecoratedType,TInterface> that decorates the IStripeInputVisualizationHelper type for the type of items this instance has been created for.
Remarks
Gets a LookupDecorator<TDecoratedType,TInterface> that decorates the IPositionHandler type for the type of items this instance has been created for.
Remarks
Methods
getDecoratorFor
<TInterface>(type: Class, decorateNulls?: boolean, nullIsFallback?: boolean) : LookupDecorator<TStripe,TInterface>Creates a LookupDecorator<TDecoratedType,TInterface> for TStripe
s that can be used to decorate TInterface
types of the labels.
Type Parameters
- TInterface
- The type of the interface that should be decorated of the instances'
.
Parameters
A map of options to pass to the method.
- type - Class
- The type of the interface that should be decorated of the instances' lookup.
- decorateNulls - boolean
- if set to
true
null
values will be decorated, otherwise not. - nullIsFallback - boolean
- if set to
true
null
values will be treated as fallback values, otherwise they will be used as the final result.
Returns
- ↪LookupDecorator<TStripe,TInterface>
- A new LookupDecorator<TDecoratedType,TInterface> for the specified interface.
$class
property on JavaScript classes inheriting from yFiles classes is only valid once an instance of this subclass was created. Call fixType, first or instantiate the class at least once.Removes an IContextLookupChainLink again that has been added by one of the various decorators for stripes.
Parameters
A map of options to pass to the method.
- lookup - IContextLookupChainLink
- The lookup chain link to remove.