Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: event onRequestUsers as props #37

Merged
merged 2 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

##
- fix re-rendering of component after init editors
- added props events_onRequestUsers

## 1.4.0
- improved load api.js
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ The application will be deployed on the web server (*http://localhost:3000* by d
| `events_onRequestRestore` | (event: object) => void | null | no | The function called when the user is trying to restore the file version by clicking the _Restore_ button in the version history. |
| `events_onRequestSelectSpreadsheet` | (event: object) => void | null | no | The function called when the user is trying to select recipients data by clicking the Mail merge button. |
| `events_onRequestSelectDocument` | (event: object) => void | null | no | The function called when the user is trying to select a document for comparing or combining. |

| `events_onRequestUsers` | (event: object) => void | null | no | The function called when the user can select other users to mention in the comments, grant the access rights to edit the specific sheet ranges, or set the user avatars. |

## Storybook

Expand Down
4 changes: 3 additions & 1 deletion src/components/DocumentEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default defineComponent({
events_onRequestRestore: Function,
events_onRequestSelectSpreadsheet: Function,
events_onRequestSelectDocument: Function,
events_onRequestUsers: Function,
},
mounted() {
let url = this.documentServerUrl;
Expand Down Expand Up @@ -163,7 +164,8 @@ export default defineComponent({
onRequestHistoryData: this.events_onRequestHistoryData,
onRequestRestore: this.events_onRequestRestore,
onRequestSelectSpreadsheet: this.events_onRequestSelectSpreadsheet,
onRequestSelectDocument: this.events_onRequestSelectDocument
onRequestSelectDocument: this.events_onRequestSelectDocument,
onRequestUsers: this.events_onRequestUsers
},
height: this.height,
type: this.type,
Expand Down
Loading