0.2.15 • Published 3 years ago

@webfocus/util v0.2.15

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Webfocus Util

This is a WebfocusComponent implementation with some utilities for other @webfocus/component implementations.

This component contains some client javascript and some server side functions.

To use the component to serve the client files in the WebfocusApp register:

webfocusApp.registerComponent(require('@webfocus/util/component'))

Client Side Scripts

To use the client side scrips insert the tag <script src="/util/<script-name>"></script>

submit-json.js

This script enables sumbiting any form with JSON. It catches any submit event. If the form contains a data-submit-cb attribute it makes a request to the forms action with its methof and a FormData object. On recieving a response it tries to call the function given by data-submit-cb.

pagination.js

This script makes a GET request to an url provided.

inline-fetch.js

This script makes a GET request to an url provided.

Server Side Scripts

require("@webfocus/util").pagination

TODO

  • Improve Documentation

  • Complete inline-fetch functions

Author

Diogo Almiro

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.8

3 years ago

0.2.5

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.4

3 years ago

0.1.0

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago