RulePage
API / @publicodes/react-ui / RulePage
function RulePage(props): Element
Display the documentation page of a given rule
See the sandbox to see the component in action (it is displayed on the right screen).
Parameters
Parameter | Type | Description |
---|---|---|
props | object | - |
props.apiDocumentationUrl ? | string | The URL for the API documentation. |
props.apiEvaluateUrl ? | string | The URL for the API evaluation. |
props.documentationPath | string | The base path on which the documentation will be mounted. For example, if it is /documentation, the URL of the rule remuneration.primes will be /documentation/remuneration/primes. |
props.engine | Engine <string > | The engine object whose calculations we want to display. |
props.language | "fr" | "en" | The language in which to display the documentation (currently, only ‘fr’ and ‘en’ are supported). |
props.mobileMenuPortalId ? | string | The ID of the portal for the mobile menu. |
props.npmPackage ? | string | The name of the npm package. |
props.openNavButtonPortalId ? | string | The ID of the portal for the open navigation button. |
props.renderers | SupportedRenderers | The React components that will be used in the documentation page. |
props.rulePath | string | The path of the rule to display. |
props.searchBar ? | boolean | Displays a search bar to navigate through the documentation Default false |
props.showDevSection ? | boolean | Whether to show the development section. Default true |
Returns
Element