Document apiReferenceTables

tables.setLayout

Set the layout mode of the target table.

mutates documenttracked modedry runidempotent
doc.tables.setLayout(…)

Expected result

Returns a TableMutationResult receipt; reports NO_OP if the table already uses the requested layout mode.

Inputs

targetTableAddressconditionally required
Fields
kind"block"required
nodeType"table"required
nodeIdstringrequired
nodeIdstringconditionally required
6 additional input fields
preferredWidthnumber
preferredWidthType"dxa" | "auto" | "pct"
alignment"left" | "center" | "right"
leftIndentPtnumber
autoFitMode"fixedWidth" | "fitContents" | "fitWindow"
tableDirection"ltr" | "rtl"

Result

Output fields
true
successtruerequired
tableTableAddress
Fields
kind"block"required
nodeType"table"required
nodeIdstringrequired
trackedChangeRefsEntityAddress[]
false
successfalserequired
failureobjectrequired
Fields
code"NO_OP" | "INVALID_TARGET" | "TARGET_NOT_FOUND" | "CAPABILITY_UNAVAILABLE"required
messagestringrequired
detailsunknown

Failures

Pre-apply throws

  • TARGET_NOT_FOUND
  • INVALID_TARGET
  • CAPABILITY_UNAVAILABLE

Non-applied receipt codes

  • INVALID_TARGET
  • NO_OP

Raw schemas

Open the generated JSON artifact for the exact input, output, success, and failure schemas represented by this contract version.

View raw JSON schemas