Creates an instance of ListTableTemplateProcessor
.
The output file path where the generated template will be saved.
Protected
Readonly
_fileProtected
Readonly
_templateProtected
Readonly
_templateManages the presentation layer artifact generation process which is invoked within the presentation layer generation stage.
The generation context which contains necessary data including the application graph context.
A promise that resolves to a LayerArtifact
representing the generated presentation layer.
Protected
getRetrieves the title of a template page in the specified language.
An object containing language-specific titles.
The language identifier for the title. Defaults to "en", if not provided.
The page title in the specified language, or the first available language if not found.
This method is responsible for the population and rendering of the React component template for the list capability implementation. After all dependencies needed by template (@see {ListTableTemplate} for more details) are populated, the template renderer is invoked to generate the resulting React component.
Dependencies providing the information about the aggregate and context for the template.
A promise that resolves to the artifact which contains generated React component to enable the list capability.
Protected
restoreRestores the data model interface for an aggregate and converts it to the corresponding JSON schema.
The metadata of the aggregate for which the data model interface needs to be restored.
The restored schema as a JSON Schema object.
The
ListTableTemplateProcessor
class is responsible for rendering the React component from a template and thus generating the presentation layer code for the capability to display the list of corresponding items. It extends thePresentationLayerTemplateGenerator
class and makes use ofListTableTemplate
for template population and rendering.