From 03a20180bef26d40a0daa2c46edb5de0b22da641 Mon Sep 17 00:00:00 2001 From: Alison McKay Date: Mon, 7 Apr 2025 18:18:12 -0700 Subject: [PATCH] [Excel] (Data types) Add card layout options --- docs/excel/excel-data-types-entity-card.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/excel/excel-data-types-entity-card.md b/docs/excel/excel-data-types-entity-card.md index b813b37e4..26f6e0f5c 100644 --- a/docs/excel/excel-data-types-entity-card.md +++ b/docs/excel/excel-data-types-entity-card.md @@ -1,7 +1,7 @@ --- title: Excel JavaScript API data types entity value card description: Learn how to use entity value cards with data types in your Excel add-in. -ms.date: 01/22/2025 +ms.date: 04/07/2025 ms.localizationpriority: medium --- @@ -111,6 +111,9 @@ The entity value JSON in the next code snippet shows a `card` layout with nested Within each card section you can specify elements like `layout`, `title`, and `properties`. The `layout` key uses the [`CardLayoutListSection`](/javascript/api/excel/excel.cardlayoutlistsection) object and accepts the value `"List"`. The `properties` key accepts an array of strings. Note that the `properties` values, such as `"Product ID"`, have corresponding data types in the preceding [Card properties](#card-properties) article section. Sections can also be collapsible and can be defined with boolean values as collapsed or not collapsed when the entity card is opened in the Excel UI. +> [!TIP] +> The `layout` key also has additional display options available beyond `"List"` within card sections. Use `"Table"` for [Excel.CardLayoutTableSection](/javascript/api/excel/excel.cardlayouttablesection) and `"TwoColumn"` for [Excel.CardLayoutTwoColumnSection](/javascript/api/excel/excel.cardlayouttwocolumnsection). Note that the `"TwoColumn"` layout is only available in preview. + > [!NOTE] > To experiment with this code snippet in a complete sample, open [Script Lab](../overview/explore-with-script-lab.md) in Excel and select [Data types: Create entity cards from data in a table](https://github.com/OfficeDev/office-js-snippets/blob/prod/samples/excel/20-data-types/data-types-entity-values.yaml) in our **Samples** library.