Skip to content

Commit

Permalink
refactor: add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchappell committed May 28, 2021
1 parent 36f45f1 commit 63610dc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120,
"semi": false,
"arrowParens": "avoid",
"spaceAfterFunction": false
}
25 changes: 25 additions & 0 deletions docs/formBuilder/options/persistDefaultFields.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# persistDefaultFields

When `persistDefaultFields` is enabled, `defaultFields` defined in the formBuilder options will not be removed when clearing all fields.

## Usage

```javascript
var options = {
defaultFields: [
{
className: 'form-control',
label: 'Default Field',
placeholder: 'Enter your default field value',
name: 'default-field-1',
type: 'text',
},
],
persistDefaultFields: true,
}
$(container).formBuilder(options)
```

## See it in Action

<p data-height="494" data-theme-id="22927" data-embed-version="2" data-slug-hash="WNpZZVg" data-default-tab="result" data-user="kevinchappell" class="codepen"></p>

0 comments on commit 63610dc

Please sign in to comment.