English
getOptionsExtra
About 124 wordsLess than 1 minute
2025-09-22
This method synchronously returns pass-through data from the page input parameters of the current create/edit page. It is commonly used to obtain scenario-specific parameters for certain create/edit entry points.
Parameters
| Parameter | Description | Type |
|---|---|---|
| key | Pass this when retrieving the value of a specific key from the pass-through data | String |
Return Value
There is no fixed return structure. Refer to the code example.
Code Example
export default function (context) {
return {
/** After the create/edit page has finished rendering */
renderEnd(){
let extraData = context.getOptionsExtra();// get the complete pass-through data object
console.log("context.getOptionsExtra: ", extraData)
let extraDataKey1 = context.getOptionsExtra("key1");// get a specific key value from the pass-through data
console.log("context.getOptionsExtra().key1: ", extraDataKey1)
//extraData.key1==extraDataKey1;
}
}
}