diff --git a/docs/en/components/fetchit/examples/form/pico.md b/docs/en/components/fetchit/examples/form/pico.md index 6c362c2c..5dc74d06 100644 --- a/docs/en/components/fetchit/examples/form/pico.md +++ b/docs/en/components/fetchit/examples/form/pico.md @@ -1,6 +1,6 @@ # Pico.css -With the [Pico.css](https://picocss.com/) framework everything is much simpler, because the `aria-invalid` attribute controls the invalid state, and our component adds it automatically. Let's look at a small example. +With the [Pico.css](https://picocss.com/) framework everything is much simpler, because the `aria-invalid` attribute controls the invalid state, and our extra adds it automatically. Let's look at a small example. ```html
diff --git a/docs/en/components/fetchit/frontend/class.md b/docs/en/components/fetchit/frontend/class.md index ed5b911a..92951c35 100644 --- a/docs/en/components/fetchit/frontend/class.md +++ b/docs/en/components/fetchit/frontend/class.md @@ -79,7 +79,7 @@ An object with events and their names. May be useful for prototype inheritance. Remember, to access this class, you must wait until the script in which it is declared is executed. ::: -If you have a file script, it is enough to specify the `defer` attribute when connecting it (Recall that the component registers the script in the `` tag). +If you have a file script, it is enough to specify the `defer` attribute when connecting it (Recall that the extra registers the script in the `` tag). And in the case of an inline script, you need to wait for the script to execute, and this is possible in the `DOMContentLoaded` event handler. Example: diff --git a/docs/en/components/fetchit/index.md b/docs/en/components/fetchit/index.md index c3e4877c..4c678082 100644 --- a/docs/en/components/fetchit/index.md +++ b/docs/en/components/fetchit/index.md @@ -98,11 +98,11 @@ An lightweight Extra for processing forms using the Fetch API. ## Introduction -**CMS/CMF MODX Revolution** has [FormIt](https://github.com/Sterc/FormIt) component, which implements sending and processing forms, but it works by standard browser method, i.e. with page reloading. But the modern web is demanding and the progressive step is to process them «on the fly». **FetchIt**, which uses **FormIt**, is exactly for these tasks, but you can also use your own snippet. +**CMS/CMF MODX Revolution** has [FormIt](https://github.com/Sterc/FormIt) extra, which implements sending and processing forms, but it works by standard browser method, i.e. with page reloading. But the modern web is demanding and the progressive step is to process them «on the fly». **FetchIt**, which uses **FormIt**, is exactly for these tasks, but you can also use your own snippet. ## Features -For such purposes there is [AjaxForm](https://github.com/modx-pro/AjaxForm) component (although **FetchIt** is almost the same in its server part), but **FetchIt** has some advantages: +For such purposes there is [AjaxForm](https://github.com/modx-pro/AjaxForm) extra (although **FetchIt** is almost the same in its server part), but **FetchIt** has some advantages: ### Zero dependencies @@ -126,4 +126,4 @@ The extra is available for installation via Package Manager from: - [How to connect to the repository](https://en.modstore.pro/faq) - Official repository [modx.com](https://modx.com/extras/package/fetchit) -Or you can build a package from the component repository on [GitHub](https://github.com/GulomovCreative/FetchIt) +Or you can build a package from the extra repository on [GitHub](https://github.com/GulomovCreative/FetchIt) diff --git a/docs/en/components/fetchit/snippets/custom.md b/docs/en/components/fetchit/snippets/custom.md index e019c744..c2df7d5e 100644 --- a/docs/en/components/fetchit/snippets/custom.md +++ b/docs/en/components/fetchit/snippets/custom.md @@ -8,7 +8,7 @@ You can use your own snippet, instead of **FormIt**, which will do anything (eve | message | snippet message, output if status = 0 | | data | array for fields with errors, where the keys are the field name and the value is the error message | -For convenience, the `$FetchIt` variable with the component class is passed into the snippet parameters so that you can call the `error` and `success` methods from it when it produces a response. +For convenience, the `$FetchIt` variable with the extra class is passed into the snippet parameters so that you can call the `error` and `success` methods from it when it produces a response. The simplest example of your snippet: