diff --git a/src/components/NcActionCheckbox/NcActionCheckbox.vue b/src/components/NcActionCheckbox/NcActionCheckbox.vue index 54d30dba5a..c75dec312a 100644 --- a/src/components/NcActionCheckbox/NcActionCheckbox.vue +++ b/src/components/NcActionCheckbox/NcActionCheckbox.vue @@ -7,12 +7,30 @@ This component is made to be used inside of the [NcActions](#NcActions) component slots. ```vue + + + ``` @@ -53,6 +71,11 @@ export default { }, }, + model: { + prop: 'checked', + event: 'update:checked', + }, + props: { /** * id attribute of the checkbox element diff --git a/src/components/NcActionInput/NcActionInput.vue b/src/components/NcActionInput/NcActionInput.vue index 8397bdcfd8..be537316c1 100644 --- a/src/components/NcActionInput/NcActionInput.vue +++ b/src/components/NcActionInput/NcActionInput.vue @@ -24,7 +24,7 @@ For the `NcSelect` component, all events will be passed through. Please see the - + @@ -268,6 +268,11 @@ export default { mixins: [ActionGlobalMixin], + model: { + prop: 'value', + event: 'update:value', + }, + props: { /** * id attribute of the checkbox element diff --git a/src/components/NcActionRadio/NcActionRadio.vue b/src/components/NcActionRadio/NcActionRadio.vue index ae3a46593b..9b58d5d773 100644 --- a/src/components/NcActionRadio/NcActionRadio.vue +++ b/src/components/NcActionRadio/NcActionRadio.vue @@ -9,12 +9,30 @@ Usually, you will provide a name prop to bind the radio together. So that only one of each name set can be selected at the same time. ```vue + + + ``` @@ -56,6 +74,11 @@ export default { }, }, + model: { + prop: 'checked', + event: 'update:checked', + }, + props: { /** * id attribute of the radio element diff --git a/src/components/NcActionTextEditable/NcActionTextEditable.vue b/src/components/NcActionTextEditable/NcActionTextEditable.vue index 29d91bb237..fce2056700 100644 --- a/src/components/NcActionTextEditable/NcActionTextEditable.vue +++ b/src/components/NcActionTextEditable/NcActionTextEditable.vue @@ -20,7 +20,7 @@ All undocumented attributes will be bound to the textarea. e.g. `maxlength` - + @@ -34,6 +34,11 @@ export default { components: { Pencil, }, + data () { + return { + value: 'This is a textarea with name', + } + }, } ``` @@ -96,6 +101,11 @@ export default { mixins: [ActionTextMixin], + model: { + prop: 'value', + event: 'update:value', + }, + props: { /** * id attribute of the checkbox element diff --git a/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue b/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue index 5bcbc9a115..818fb3ce1e 100644 --- a/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue +++ b/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue @@ -18,6 +18,7 @@ Note: All attributes on the element are passed to the inner input element - exce
Enable sharing Enable sharing (disabled) + Enable sharing (v-model) Enable sharing (with request loading)
sharingEnabled: {{ sharingEnabled }} @@ -51,6 +52,7 @@ export default {
Default permission read Default permission read+write + Default permission read+write+execute
sharingPermission: {{ sharingPermission }}
@@ -203,6 +205,7 @@ export default { Permission read Permission write Permission delete + Permission execute
sharingPermission: {{ sharingPermission }}
@@ -223,6 +226,7 @@ export default { ``` @@ -41,6 +55,12 @@ import GenRandomId from '../../utils/GenRandomId.js' export default { name: 'NcSettingsInputText', + + model: { + prop: 'value', + event: 'update:value', + }, + props: { /** * label of the select group element diff --git a/src/components/NcTextArea/NcTextArea.vue b/src/components/NcTextArea/NcTextArea.vue index 7b8a2ff6e8..388d2a72e9 100644 --- a/src/components/NcTextArea/NcTextArea.vue +++ b/src/components/NcTextArea/NcTextArea.vue @@ -13,35 +13,58 @@ It extends and styles an HTMLTextAreaElement. + +