Alla creazione carichiamo il record, se è specificato.
Al cambiamento delle proprietà, se siamo passati ad una fase di modifica (ad esempio dopo il salvataggio mediante Redirect), provvediamo a caricare il record.
Callback che utilizziamo, al mount dei RelationWidget, per notificare
all'utente finale che, anche se il componente è stato Montato, è necessario
inserire la proprietà nell'include in modo da scaricarla dalle API.
Completamento del salvataggio, mediante la chiamata dell API.
Provvede a caricare il record dalle API per popolare il modulo, oppure, in caso l'ID non sia fornito, a preparare il Form per un Nuovo record.
L'ID del record da mostrare
Mostra le relazioni presenti nel modello.
Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.
Called immediately after a compoment is mounted. Setting state here will trigger re-rendering.
Called immediately after updating occurs. Not called for the initial render.
Called immediately before mounting occurs, and before Component#render.
Avoid introducing any side-effects or subscriptions in this method.
Called when the component may be receiving new props. React may call this even if props have not changed, so be sure to compare new and existing props if you only want to handle changes.
Calling Component#setState generally does not trigger this method.
Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as
cancelled network requests, or cleaning up any DOM elements created in componentDidMount.
Called immediately before rendering when new props or state is received. Not called for the initial render.
Note: You cannot call Component#setState here.
Called to determine whether the change in props and state should trigger a re-render.
Component always returns true.
PureComponent implements a shallow comparison on props and state and returns true if any
props or states have changed.
If false is returned, Component#render, componentWillUpdate
and componentDidUpdate will not be called.
Generated using TypeDoc
Supportare title dinamico con una funzione.