From 539d1a8cfd6dbe4383dacc50a450b6b48a9a2cbb Mon Sep 17 00:00:00 2001 From: Felix Delval Date: Wed, 22 May 2024 14:53:39 +0200 Subject: [PATCH] Fixing typo --- src/pages/services/aem-cf-editor/api/data/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/services/aem-cf-editor/api/data/index.md b/src/pages/services/aem-cf-editor/api/data/index.md index aa299279..9007bcbb 100644 --- a/src/pages/services/aem-cf-editor/api/data/index.md +++ b/src/pages/services/aem-cf-editor/api/data/index.md @@ -49,7 +49,7 @@ await api.setValue(fieldName, "New value"); ```js const api = await guestConnection.host.dataApi.get(); const fieldName = "test-field"; -await api.setStyle(fieldName, {"display": "none"}); +await api.setStyles(fieldName, {"display": "none"}); // Second parameter is the object that is used to pass the styles that will be applied on field ```