Question 68 of 130 from exam PL-400: Microsoft Power Platform Developer

Question 68 of 130 from exam PL-400: Microsoft Power Platform Developer

Question

You add a PCF component for image upload to the model-driven app.

The component consists of the default image and the Upload button.

When you click on the button, the component opens a file browser and asks you to select an image for upload.

After the upload, the chosen image is rendered within a control instead of the default image.

You create the manifest file and implement the component logic in a Typescript TSImageComponent class and save it to the index.ts file.

The code creates the button, renders the initial image, opens browsers for upload, and renders the selected image.

Please select values for SLOT 1 and SLOT 2 in the manifest file.

<?xml version="1.0" encoding="ut f-8" ?>

<manifest>
< §SGE namespace="CBImageControl" constructor="—E@E" version="1.0.0" display—-name-key="TS_ImageComponent_Display_Key"
description—key="TSImageComponent_Desc_Key" control-type="standard">

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E. F.

Correct Answer: E

The Components are reusable blocks that help you develop the Power Apps applications.

Power Apps provides out-of-the-box standard controls (components) for creating applications, like HTML Text, Vertical Gallery, or Edit Form.

If your Power Platform solution requires more than standard controls, Power Apps also provides tools to create and reuse the custom code components.

Power Apps Component Framework (PCF) is a foundation for building these components.

The code components include three parts: Manifest - is an XML document that defines the component's metadata.

Component implementation - contains the code of the component in the index.ts file that defines the UI and functionality.

You can code using TypeScript or Javascript.

Resources - the files needed to construct the component visualizations.

The resource files defined in the Manifest file are required for the component.

The Manifest consists of several nodes: control, type-group, property, data-set, resources, and feature-usage.

The main node is the control.

And a constructor is the name of the component's logic implementation class - TSImageComponent.

<?xml version="1.0" encoding="ut f-8" ?>

<manifest>
<€ontrol namespace="(BImageControl" constructor="TSimagecomponent" version="1.0.0" display-name—key="TS_ImageComponent_Display_Key"
description—key="TSImageComponent_Desc_Key" control-type="standard">

All other options are incorrect.

For more information about PCF manifest files, please visit the below URLs: