Skip to content

Commit

Permalink
docs: Spell fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GulomovCreative committed Nov 12, 2023
1 parent 3d1eef3 commit b1113a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/en/components/fetchit/examples/form/pico.md
Original file line number Diff line number Diff line change
@@ -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
<form>
Expand Down
2 changes: 1 addition & 1 deletion docs/en/components/fetchit/frontend/class.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<head>` 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 `<head>` 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:

Expand Down
6 changes: 3 additions & 3 deletions docs/en/components/fetchit/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
2 changes: 1 addition & 1 deletion docs/en/components/fetchit/snippets/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit b1113a0

Please sign in to comment.