Field Extensions
Last updated
Last updated
public interface IUIFieldExtensionHandler
{
// The order in which the extensions should be displayed.
int DisplayOrder { get; set; }
// If set to true and no restricting types are set, either with <c>UIHintComponent</c>, <c>ActivityTypes</c> or <c>Syntaxes</c>, this extension will be rendered for in all field types.
bool IncludeForAll { get; set; }
// The position to render the extension within the field.
FieldExtensionPosition Position { get; set; }
// The UIHint component this extension should be rendered for.
string UIHintComponent { get; set; }
// The activities this extension should be rendered for.
List<string> ActivityTypes { get; set; }
// The syntaxes this extension should be rendered for.
List<string> Syntaxes { get; set; }
// Returns true if the handler extension the specified or is empty.
bool GetExtensionForInputComponent(string componentName);
// Returns a <see cref="RenderFragment"/> of the added extension.
RenderFragment DisplayExtension(DisplayInputEditorContext context);
}// Register the field enhancer with DI.
services.AddUIFieldEnhancerHandler<CustomFieldExtension>();