您位於此處:
開始使用教育中的禮物項目網格自訂
自訂 Lightning Web 元件必須符合特定需求,才能作為後續處理強制回應、資料欄強制回應或資料欄元件使用。
| 所需版本 |
|---|
| 提供版本:Lightning Experience |
提供版本:具備 Education Cloud 的 Enterprise、Performance、Unlimited 及 Developer Edition 提供版本:具備 Nonprofit Cloud 的 Enterprise、Unlimited 及 Developer Edition |
「禮物項目網格」支援下列區域中的自訂 Lightning Web 元件:
- 單一禮物項目的後續處理強制回應
- 資料欄強制回應
- 「元件」欄類型上的「儲存格顯示」元件
- 「元件」欄類型上的「儲存格編輯」元件
若要讓 Lightning Web 元件可在禮物項目網格中使用,請確定其 js-meta.xml 檔案符合下列需求:
- 將
<isExposed>設為 true。 - 沒有已設定的元件。
使用此範例作為設定 js-meta.xml 檔案的指南:
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>66.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>Gift Entry Tribute Post Save</masterLabel>
<description>Creates a GiftTribute record as a post-processing step for Single Gift Entry</description>
</LightningComponentBundle>

