-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
publish wix window frontend getAppPageData function for app reflow
* Published by the Tech Writer Single Sourcing Tool * Published by the Tech Writer Single Sourcing Tool * DocWorks for js-wixcode-sdk - 2 changes detected, but 14 issue detected changes: Service wix-window-frontend has a new operation getAppPageData Service wix-window has a new operation getAppPageData issues: Message ViewChangeEventOptions has an unknown property type * (ApppointmentFieldEvent.js (8)) Operation postMessage has an unknown param type * (HtmlComponent.js (97)) Property data has an unknown type * (HtmlComponentMessageEvent.js (16)) Property fileLimit has mismatching types for get (number) and set (string) (UploadButton.js (128, 149)) Operation set has an unknown param type * (window-frontend.js (201)) Operation get has an unknown return type * (window-frontend.js (234)) Operation set has an unknown param type * (window.js (235)) Operation get has an unknown return type * (window.js (269)) Callback ViewChangeOperation is defined two or more times (AppointmentField.js (347), DatePicker.js (471)) Callback ViewChangeOperation has an unknown return type * (AppointmentField.js (347)) Callback ViewChangeEventHandler is defined two or more times (AppointmentField.js (362), DatePicker.js (465)) Callback Validator has an unknown param type * (ValidatableMixin.js (143)) Property value has an unknown type * (ValueMixin.js (62)) Property value has an unknown type * (ValueMixin.js (89)) * Published by the Tech Writer Single Sourcing Tool --------- Co-authored-by: Wix Tech Writers <[email protected]> Co-authored-by: Adam Friedmann <[email protected]>
- Loading branch information
1 parent
6024ce5
commit 925085e
Showing
3 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
js-wixcode-sdk/wix-window-frontend/guides/App Page Data.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!-- This article was published using the Doc Push single-sourcing tool. Any changes to this article MUST be made in the source file. Find it at www.github.com/wix-private/velo-docs.--> | ||
|
||
# App Page Data | ||
|
||
You can use the [`getAppPageData()`](/wix-window-frontend/getapppagedata) function in code for [custom app pages](https://dev.wix.com/docs/develop-websites/articles/wix-apps/build-a-custom-wix-business-app-page) to retrieve data you can use to customize the page. The data passed to each type of custom app page is different. This article lists the objects passed to each type of custom app page. | ||
|
||
## Booking Service Page | ||
|
||
The object passed to a custom Booking Service page contains the following properties: | ||
|
||
| Name | Type | Description | | ||
| --- | --- | --- | | ||
| `service` | Object | The [Service object](https://dev.wix.com/docs/rest/api-reference/wix-bookings/services-v-2/service-object), which contains detailed data about the service. | | ||
|
||
> **Note**: If the page URL specifies a service that is deleted, hidden, or does not exist, the app returns `null`. | ||
Learn more about [building a custom Service page](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-bookings/build-a-custom-booking-service-page). | ||
|
||
## Booking Calendar Page | ||
|
||
The object passed to a custom Booking Calendar page contains the following properties: | ||
|
||
| Name | Type | Description | | ||
| --- | --- | --- | | ||
| `service` | Object | The [Service object](https://dev.wix.com/docs/rest/api-reference/wix-bookings/services-v-2/service-object), which contains detailed data about the service. | | ||
|
||
> **Note**: If the page URL specifies a service that is deleted, hidden, or does not exist, the app returns `null`. | ||
Learn more about [building a custom Calendar page](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-bookings/build-a-custom-booking-calendar-page). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters