-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from simomosi/dev
Dev v1.3.0
- Loading branch information
Showing
16 changed files
with
481 additions
and
423 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
docs/configurations/field-configuration.md → docs/configurations/fields-configuration.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
# ToDo List | ||
## ToDo List | ||
|
||
- [ ] Use dynamic-forms with dynamically created fields | ||
|
||
# Changelog | ||
## Changelog | ||
Dynamic-forms follows the [semver](https://semver.org) standard. | ||
|
||
## Changelist | ||
#### 1.3.0 | ||
|
||
### 1.2.0 | ||
- Added automatic field discovery: you don't need to specify fields with standard behavior anymore | ||
|
||
#### 1.2.0 | ||
|
||
- Supported fields initialisation | ||
- Added `form.ready()` method to synchronise post-initialisation operations | ||
|
||
### 1.0.1 | ||
#### 1.0.1 | ||
|
||
- Added support for nested input names ([link](https://github.com/simomosi/dynamic-forms/pull/3)). Thanks to [@yoannisj](https://github.com/yoannisj) | ||
|
||
### 1.0.0 | ||
#### 1.0.0 | ||
|
||
- First release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Installation | ||
## Using a package manager | ||
## Using a package manager (recommeded) | ||
|
||
=== "npm" | ||
```shell | ||
|
@@ -10,11 +10,18 @@ | |
yarn add @simomosi/dynamic-forms | ||
``` | ||
|
||
This will put the library under the path `node_modules/@simomosi/dynamic-forms/dist/dynamicforms.min.js` | ||
## Using a CDN | ||
|
||
```html | ||
<script src='https://unpkg.com/@simomosi/dynamic-forms@latest'></script> | ||
``` | ||
|
||
You can set the specific version (e.g. `[email protected]`), use tags (e.g. `dynamic-forms@latest`) or semver ranges (e.g. `dynamic-forms@^1.2.0`). | ||
See [UNPKG page](https://www.unpkg.com/) for more information. | ||
|
||
## Using local files | ||
Download the last release from [GitHub release section](https://github.com/simomosi/dynamic-forms/releases). Extracts files in your assets folder and load them in your project (see section below). | ||
Download the last release from [GitHub release section](https://github.com/simomosi/dynamic-forms/releases). Extracts files in your assets folder and load them in your project (see next section). | ||
|
||
This is not the recommended method because you can't get updates automatically. | ||
This is not the recommended method because you can't get security updates automatically. | ||
|
||
If you still want to proceed this way, it is recommended to use the minified file (*dynamicforms.min.js*) for better performance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,14 +143,13 @@ | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script> | ||
|
||
|
||
<!-- Dev mode (import as script tag) --> | ||
<!-- CDN --> | ||
<!-- <script src='https://unpkg.com/@simomosi/dynamic-forms@latest'></script> --> | ||
<!-- Import sources as script tag --> | ||
<script src='../dist/dynamicforms.js'></script> | ||
<!-- Prod mode (import as script tag) --> | ||
<!-- <script src='../dist/dynamicforms.min.js'></script>--> | ||
|
||
<script defer> | ||
// import '../dist/dynamicforms.js'; // Dev mode (import as module) | ||
// import '../dist/dynamicforms.min.js'; // Prod mode (import as module) | ||
// import '../dist/dynamicforms.js'; // Import sources as module | ||
|
||
const formConfiguration = { | ||
id: 'jsonPlaceholder', | ||
|
@@ -228,12 +227,6 @@ | |
} | ||
} | ||
}, | ||
{ | ||
name: 'visibility-checkbox' | ||
}, | ||
{ | ||
name: 'readonly-checkbox' | ||
}, | ||
{ | ||
name: 'checkbox-target-field', | ||
behavior: { | ||
|
@@ -254,9 +247,6 @@ | |
}, | ||
}, | ||
}, | ||
{ | ||
name: 'rows-radio' | ||
}, | ||
{ | ||
name: 'radio-target-textarea', | ||
behavior: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.