|
| 1 | +--- |
| 2 | +title: Card Designer overview (Preview) |
| 3 | +description: Learn about the designer and how to create cards using it. |
| 4 | +ms.date: 09/20/2022 |
| 5 | +ms.topic: article |
| 6 | +author: iaanw |
| 7 | +ms.author: iawilt |
| 8 | +manager: shellyha |
| 9 | +ms.reviewer: |
| 10 | +ms.custom: |
| 11 | +ms.collection: |
| 12 | +--- |
| 13 | + |
| 14 | +# Card Designer overview (Preview) |
| 15 | + |
| 16 | +[!INCLUDE[cards_preview_notice](../includes/preview-include.md)] |
| 17 | + |
| 18 | +The Card Designer is where makers and developers can build cards to suit their needs. The designer lets you optimize and automate business user tasks and create actionable scenarios in interactive and easy-to-make cards. The designer builds off of the designer for Adaptive Cards, introducing a few new concepts: |
| 19 | + |
| 20 | +- Power Fx: specify an action to trigger when an element is selected |
| 21 | +- Connectors: bring data into cards (currently only from Dataverse) |
| 22 | +- Variables: store, bind, and reuse data across a card |
| 23 | +- Dataverse: stores each card you create and allows you to retrieve the card at send time |
| 24 | + |
| 25 | +## Find the designer |
| 26 | + |
| 27 | +To get to the designer, take the following steps: |
| 28 | + |
| 29 | +1. Go to [Power Apps](https://make.powerapps.com) and make sure you're in the correct environment. |
| 30 | + |
| 31 | +1. Go to the pane on the left to access all of the card-related views. |
| 32 | + |
| 33 | + 1. To create a new card, select **Cards** then **Create**. |
| 34 | + 1. To see all current cards, select **Cards** then **Cards** |
| 35 | + |
| 36 | + :::image type="content" source="../media/designer-overview/create-new-card.png" alt-text="Screenshot showing card creation screen." border="true"::: |
| 37 | + |
| 38 | +1. Select the **+ Create a card** to start building your own card. |
| 39 | + |
| 40 | +## What's in the designer? |
| 41 | + |
| 42 | +The designer is made up of the following elements: |
| 43 | + |
| 44 | +:::image type="content" source="../media/designer-overview/designer-elements.png" alt-text="Screenshot of Card Designer with elements highlighted." border="true"::: |
| 45 | + |
| 46 | +1. Main menu |
| 47 | +1. Tool pane |
| 48 | +1. Card canvas |
| 49 | +1. Property pane |
| 50 | +1. Formula bar |
| 51 | +1. Play button |
| 52 | + |
| 53 | +The sections below describe each of the designer elements. |
| 54 | + |
| 55 | +### Main menu |
| 56 | + |
| 57 | +The main menu lets you switch between the different tools available in the designer. In order, these are: |
| 58 | + |
| 59 | +- Tree View: see the card as a hierarchical outline and view the relationships of the card elements. |
| 60 | +- Insert: main UI for editing and adding card elements. |
| 61 | +- Data: add connectors to your card to use data from external sources. |
| 62 | +- Variables: store, bind, and reuse data across a card. |
| 63 | + |
| 64 | +### Tool pane |
| 65 | + |
| 66 | +When you start making your card, you'll use controls from the Tool pane. There are three categories of controls in the pane: |
| 67 | + |
| 68 | +- Display: Add text and media to cards. |
| 69 | +- Input: Add different types of input boxes to collect information from users. |
| 70 | +- Layout: Add formatting and customize your card's structure. |
| 71 | + |
| 72 | +### Card canvas |
| 73 | + |
| 74 | +The card canvas is where where you build the user interface for your card, using connectors, variables, and elements from the Tool pane. |
| 75 | + |
| 76 | +You can't resize a card in the card canvas view because cards automatically fit themselves to the ___location they're placed into. |
| 77 | + |
| 78 | +### Property pane |
| 79 | + |
| 80 | +The property pane is used to change up specific properties for an element. Each type of element has its own property pane, including the card itself. For most of the drag-and-drop elements, you'll be able to specify things like: |
| 81 | + |
| 82 | +- **Name**: the variable name associated with that element, which you can reference in a Power Fx formula |
| 83 | +- **Label**/**Text**: any text the user will see when they load in the card |
| 84 | +- **Default value**: the initial value of a field |
| 85 | +- **Initially visible**: choose if the element will be visible on load |
| 86 | + |
| 87 | +Certain elements have visual aspects that you can modify. For text labels and input controls, for example, you can customize font, color, spacing, and more. |
| 88 | + |
| 89 | +Each property pane also contains advanced features, which allow you to specify things like: |
| 90 | + |
| 91 | +- **Repeat for every**: provide a trigger for if/when an element should be repeated |
| 92 | +- **Show when**: provide a trigger to show the element |
| 93 | +- **Requires**: make the element dependent on certain features, corresponding with a minimum version |
| 94 | + |
| 95 | +You can also input Power Fx expressions into the properties, utilizing low-code solutions to make your card more powerful. |
| 96 | + |
| 97 | +### Power Fx editor |
| 98 | + |
| 99 | +The formula bar is at the top of the card designer and allows you to write Power Fx expressions. When you select an element on the card, the formula bar lets you select a property of that element from the dropdown that supports a code input and then assists you in writing an expression. |
| 100 | + |
| 101 | +To get started with Power Fx, see [Introduction to Power FX](../make-a-card/power-fx/intro-to-pfx.md). For more information on the specific functions you can use, see the Microsoft documentation for [Formula reference for Power Apps](/powerapps/maker/canvas-apps/formula-reference). |
| 102 | + |
| 103 | +> [!NOTE] |
| 104 | +> Some expressions supported in Power Apps aren't available for cards during preview. |
| 105 | +
|
| 106 | +### Play button |
| 107 | + |
| 108 | +Once you've set up your card to your liking, you can preview the card with the **Play** button. This will open your card on the **Play** page in a new tab and allow you to test the card's functionalities. This is also where, if needed, you'll be able to debug and troubleshoot your card. For more information on debugging, see [Debugging cards](../make-a-card/testing/debugging-cards.md). |
| 109 | + |
| 110 | +## Next steps |
| 111 | + |
| 112 | +Now that you've got an overview of designer, [make your first card](../tutorials/hello-world-card.md). |
0 commit comments