diff --git a/README.md b/README.md index d2705b3..e13e5cd 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@

Vue CRUD

license - version + version build PRs
diff --git a/docs/guide/crud/field-options.md b/docs/guide/crud/field-options.md index 0642564..52001e1 100644 --- a/docs/guide/crud/field-options.md +++ b/docs/guide/crud/field-options.md @@ -141,3 +141,113 @@ fieldsInfo () { ::: tip INFO If `url` and `path.default` property has been set in **src/config/api.js** file, only the rest of path is required. ::: + +## `onChange` +*Function*, optional. Function will be triggered after field value change in item details form. Function should have 2 arguments: +- field value after change, +- list with fields configuration + +Example (slugify title od post): + +```vue + + + + +``` diff --git a/examples/cms/routes/app/routes/blog/routes/posts/Index.vue b/examples/cms/routes/app/routes/blog/routes/posts/Index.vue index a3dcfea..cf69d34 100644 --- a/examples/cms/routes/app/routes/blog/routes/posts/Index.vue +++ b/examples/cms/routes/app/routes/blog/routes/posts/Index.vue @@ -14,6 +14,21 @@