Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Version published after converting to the new editor

If the Claim module provides by default a "searcher" on id (of course this is not realistic... but this is not the point, here):

...

extract of plugins/claims/ClaimsSearcher.js (React Component)
render() {
  [...]
  return (
    <PaperclassName={classes.root}>
      <formid="claim-searcher-form"className={classes.container}noValidateautoComplete="off">
        <Gridcontainer>
          <ContributedComponent contributionKey="claims.claim.searcher"onChange={this.handleChange}>
            <Griditemxs={12}>
              <TextFieldlabel="Claim id"onChange={(e) =>this.handleChange("id")(e.target.value)}className={classes.textField/>
           </Grid>
        </ContributedComponent>
     </Grid>
      [...]
     </Grid>
    </form>
    </Paper>
  );
}
The ContributedComponent component is a openIMIS Web FE core component, that enables other plugins (modules) to contribute. In this example, the contribution key is claims.claim.searcher.
So the insuree plugin can contribute by implementing and insuree picker that provides a modal window (with own filtering mechanism) to select an insuree:

...