From 482c9ef5bba7441b739655c7cdea5378efe44d3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 28 Sep 2016 14:10:27 +0200 Subject: [PATCH] Update readme about setting options before loading --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a7d6e77..44a0da9 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The script already contains the `netteForms.js` file, so don't use it again and Options ------- -You can change default options by calling `LiveForm.setOptions({ ... });` after including the script. Give only options that you want to change. For example: +You can change default options by calling `LiveForm.setOptions({ ... });` **after** including the script. Give only options that you want to change. For example: ```js @@ -24,6 +24,18 @@ You can change default options by calling `LiveForm.setOptions({ ... });` after ``` +Alternatively, if you want to set options **before** the script is loaded, create `LiveFormOptions = { ... };` with options that you want to change. For example: + +```js + + +``` + ### Available options Option | Description