Remarks
Predefined LookupDecorator<TDecoratedType, TInterface> are made available through properties like e.g. positionHandler. 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 columns and rows 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
See Also
Members
Constructors
Initializes a new instance of the StripeDecorator<T> class.
Parameters
- interfaceType: Constructor<TStripe>
- decorator: ILookupDecorator
- The decorator to use.
Properties
Gets a LookupDecorator<TDecoratedType, TInterface> that decorates the IEditLabelHelper type for the TStripes this instance has been created for.
TStripes this instance has been created for.Property Value
Gets a LookupDecorator<TDecoratedType, TInterface> that decorates the IStripeInputRenderer type for the type of items this instance has been created for.
Custom IStripeInputRenderer implementations can be used to change the way the look of an item is represented during the default interactions in a CanvasComponent. This interface is mainly used by the TableEditorInputMode. This is a convenient alternative to the direct usage of the ILookupDecorator that is provided by the ITable's lookup.
Implementations of IStripeInputRenderer will be passed a StripeInputRenderTag as render tag.
Property Value
TModelItem interface this instance uses as the generic type parameter.Gets a LookupDecorator<TDecoratedType, TInterface> that decorates the IPositionHandler type for the type of items this instance has been created for.
Property Value
TModelItem interface this instance uses as the generic type parameter.Methods
Adds an IContextLookupChainLink.
Parameters
- link: IContextLookupChainLink
- The lookup chain link to add.
getDecoratorFor
<TInterface> (interfaceType: Constructor<TInterface>): LookupDecorator<TStripe, TInterface>Creates a LookupDecorator<TDecoratedType, TInterface> for TStripes that can be used to decorate TInterface types of the labels.
getDecoratorFor
<TInterface> (interfaceType: Constructor<TInterface>): LookupDecorator<TStripe, TInterface>TStripes that can be used to decorate TInterface types of the labels.Parameters
- interfaceType: Constructor<TInterface>
- The type of the interface that should be decorated of the instances' lookup.
Return Value
- LookupDecorator<TStripe, TInterface>
- A new LookupDecorator<TDecoratedType, TInterface> for the specified interface.