Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
This article covers the module view file in Microsoft Dynamics 365 Commerce.
A module view file is a TypeScript (.ts) file that controls a module's view. The module's React component calls the module view file. You can provide more module views in various themes to render a module differently, depending on the requirements of the theme.
Example
The following example shows the default module view file for a new module.
import * as React from 'react';
import { IProductFeatureViewProps } from './product-feature';
export default (props: IProductFeatureViewProps) => {
return (
<div className='row'>
<h2>Config Value: {props.config.showText}</h2>
<h2>Resource Value: {props.resources.resourceKey}</h2>
</div>
);
};