TextModuleData
文字模組的資料。所有欄位均為選填欄位。如果有提供標頭,系統即會顯示,並串連已定義的不同類型內文。
JSON 表示法 |
{
"header": string,
"body": string,
"localizedHeader": {
object (LocalizedString )
},
"localizedBody": {
object (LocalizedString )
},
"id": string
} |
欄位 |
body |
string
文字模組的內文,定義為連續字串。建議長度上限為 500 個字元,以確保在較小的螢幕上可顯示完整字串。
|
localizedBody |
object (LocalizedString )
內文的翻譯字串。建議長度上限為 500 個字元,以確保在較小的螢幕上可顯示完整字串。
|
id |
string
文字模組的相關 ID。這個欄位可方便您管理文字模組,並在範本覆寫值中參照文字模組。ID 只能包含英數字元、「_」或「-」。請勿使用半形句號,因為半形句號會用於範本覆寫值中的 FieldReference.fieldPaths 內分隔欄位。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-13 (世界標準時間)。
[null,null,["上次更新時間:2024-11-13 (世界標準時間)。"],[[["Text modules consist of a header and body, with optional localized versions for each."],["The `header` and `body` fields are strings with recommended maximum lengths for display purposes."],["Localized content can be provided using the `localizedHeader` and `localizedBody` fields, which accept LocalizedString objects."],["Each text module can have a unique `id` for management and referencing within templates, using only alphanumeric characters, '_', or '-'."]]],["The provided data defines the structure of a Text module using a JSON format. Key fields include `header`, `body`, `localizedHeader`, `localizedBody`, and `id`, all optional. Headers and bodies can be defined as strings or localized objects with recommended maximum lengths of 35 and 500 characters, respectively. The `id` field, for management, must be alphanumeric, using '_' or '-' and not '.'. Different body types will be combined, if provided.\n"]]