Skip to content

Add a form specific Widget (outside a theme)

Charly POLY edited this page Jun 5, 2018 · 1 revision

Given the following configuration:

export const MyApplicationForm = configure<ApolloFormMutationNames>({
    client: client as any,
    jsonSchema
});

Just do:

MyApplicationForm.registerWidget('MyWidget', MyWidget);

// then use <MyApplicationForm>

Warning: the registered widget can override an existing one and will be available for all <MyApplicationForm>