diff options
Diffstat (limited to 'www/attributes/kt-post.md')
-rw-r--r-- | www/attributes/kt-post.md | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/www/attributes/kt-post.md b/www/attributes/kt-post.md deleted file mode 100644 index 6a4d06ef..00000000 --- a/www/attributes/kt-post.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -layout: layout.njk -title: </> kutty - kt-post ---- - -## `kt-post` - -The `kt-post` attribute will cause an element to issue a `POST` to the specified URL and swap -the HTML into the DOM using a swap strategy: - -```html -<button kt-post="/account/enable" kt-target="body"> - Enable Your Account -</button> -``` - -This example will cause the `button` to issue a `POST` to `/account/enable` and swap the returned HTML into - the `innerHTML` of the `body`. - -### Notes - -* `kt-post` is not inherited -* You can control the target of the swap using the [kt-target](/attributes/kt-target) attribute -* You can control the swap strategy by using the [kt-swap](/attributes/kt-swap) attribute -* You can control what event triggers the request with the [kt-trigger](/attributes/kt-trigger) attribute |