diff --git a/docs/guide/lesson-activewindow.md b/docs/guide/lesson-activewindow.md index d10d4754d..edc673293 100644 --- a/docs/guide/lesson-activewindow.md +++ b/docs/guide/lesson-activewindow.md @@ -115,7 +115,7 @@ In our view we will include an overview of all contacts in the group, similar to ```php

Group Contacts

@@ -138,7 +138,7 @@ use luya\admin\ngrest\aw\CallbackFormWidget;

Send email

Write an email to all contacts in this group.

- 'send-mail', 'buttonValue' => 'Send', 'options' => ['closeOnSuccess' => true] @@ -148,9 +148,9 @@ use luya\admin\ngrest\aw\CallbackFormWidget; ``` -As you can see, we have used the [CallbackFormWidget](https://luya.io/api/luya-admin-ngrest-aw-CallbackFormWidget). Besides the [CallbackButtonWidget](https://luya.io/api/luya-admin-ngrest-aw-CallbackButtonWidget) it is mostly what you will need to create a simple ActiveWindow with additional functionality. +As you can see, we have used the {{luya\admin\ngrest\aw\ActiveWindowFormWidget}}. Besides the {{luya\admin\ngrest\aw\CallbackButtonWidget}} it is mostly what you will need to create a simple ActiveWindow form with additional functionality. -We configured the *CallbackFormWidget* to use our defined callback function in the ActiveWindow class and show a button label. We have also used the option to close the ActiveWindow when receiving a success message from the callback. +We configured the widget to use our defined callback function in the ActiveWindow class and show a button label. We have also used the option to close the ActiveWindow when receiving a success message from the callback. ## Result diff --git a/docs/guide/ngrest-activewindow.md b/docs/guide/ngrest-activewindow.md index 5017ef5d1..2a92e70a4 100644 --- a/docs/guide/ngrest-activewindow.md +++ b/docs/guide/ngrest-activewindow.md @@ -90,14 +90,14 @@ You can also use the callback from the widget to create a form sending data to a ```php
- 'post-data', 'buttonValue' => 'Submit']); ?> + 'post-data', 'buttonValue' => 'Submit']); ?> field('firstname', 'Firstname'); ?> field('password', 'Password')->passwordInput(); ?> field('message', 'Message')->textarea(); ?> @@ -147,7 +147,7 @@ When working with angular you might want to trigger some of the functions of the |Function|Description |--------|----------- |`$scope.$parent.closeActiveWindow()`|Close the current ActiveWindow -|`$scope.$parent.loadList()`|Reload the active window list. +|`$scope.$parent.loadList()`|Reload the ActiveWindow list. |`$scope.$parent.reloadActiveWindow()`|Reload (Rerender) the ActiveWindow. |`$scope.$parent.toast.error(message)`|Display an error toast message. |`$scope.$parent.toast.success(message)`|Display a success toast message. @@ -156,12 +156,13 @@ When working with angular you might want to trigger some of the functions of the ## Existing reusable ActiveWindows -The admin UI of LUYA provides some basic reusable ActiveWindows which you can reuse and use out of the box. Just attach them to your NgRest config and maybe adjust some properties. +The admin UI of LUYA provides some basic reusable ActiveWindows which you can reuse and use out of the box. Just attach them to your NgRest config with the given configuration. Take a look at the API reference for more details in how to attach the specific ActiveWindow. -|Name |Class |Public Properties -|-- |-- |-- -|Tag |{{\luya\admin\aws\TagActiveWindow}}| -|Image collection selector from File Manager|{{\luya\admin\aws\ImageSelectCollectionActiveWindow}}| -|Change password|{{\luya\admin\aws\ChangePasswordActiveWindow}}| -|Coordinates collector|{{\luya\admin\aws\CoordinatesActiveWindow}}| -|Image collection uploader with Flow|{{\luya\admin\aws\FlowActiveWindow}}| +|Class|Description +|--|--| +|{{\luya\admin\aws\TagActiveWindow}}|Provides the option to set tags for the given record. +|{{\luya\admin\aws\ImageSelectCollectionActiveWindow}}|Select images from the file manager and store them in a reference table. +|{{\luya\admin\aws\FlowActiveWindow}}|Provides an image uploader (flow uploader) which are hidden in the filemanager and stored in a reference table. +|{{\luya\admin\aws\DetailViewActiveWindow}}|A detail view where you can define the attributes with the given type or just print all fields with the corresponding value. +|{{\luya\admin\aws\ChangePasswordActiveWindow}}|An option to change the password. +|{{\luya\admin\aws\CoordinatesActiveWindow}}|Provides a view where you can find coordinates for a given location.