0.2.15 • Published 4 years ago

@webfocus/util v0.2.15

Weekly downloads
-
License
MIT
Repository
-
Last release
4 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

4 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.8

4 years ago

0.2.5

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.4

4 years ago

0.1.0

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago