Skip to content

Commit 21293d0

Browse files
Update 16/umbraco-cms/customizing/property-editors/property-actions.md
Co-authored-by: Andy Butland <abutland73@gmail.com>
1 parent 92f21ab commit 21293d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

16/umbraco-cms/customizing/property-editors/property-actions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ import { UmbPropertyActionBase } from '@umbraco-cms/backoffice/property-action';
5656
import { UMB_PROPERTY_CONTEXT } from '@umbraco-cms/backoffice/property';
5757
5858
export class MyPropertyAction extends UmbPropertyActionBase {
59+
// The execute method is called when the user triggers the action.
5960
async execute() {
61+
// Retrieve the property’s current state,
6062
const propertyContext = await this.getContext(UMB_PROPERTY_CONTEXT);
6163
6264
// Example: set a default value

0 commit comments

Comments
 (0)