Hello,
Is it possible to get the current page number of the one the user is seeing, maybe with an event being triggered at scroll ?
Didn't find anything in the API documentation.
Thanks,
Tuan
|
container. documentEditor.viewChange = (args: ViewChangeEventArgs): void => {
console.log ("changes", args);
} |
Hello,
Thanks for your fast answer.
I'm a bit confused now around the difference between the document-editor and the document-editor-container.
I'm using :
And in the documentation :
https://ej2.syncfusion.com/vue/documentation/api/document-editor-container/
the event viewChange doesn't exist.
Is there a way to access it in Vue ?
Thanks,
Tuan
|
methods: {
documentViewChangeEvent: function(event)
{
console.log('changes', event);
}
},
mounted() {
this.Oncreated(
this.$refs.documenteditor.ej2Instances.documentEditor,
this.defaultDocument
);
this.$refs.documenteditor.ej2Instances.documentEditor.viewChange = (event) => {
this.documentViewChangeEvent(event);
};
}
|
Hello Kurthis,
Thank you for this example, it works. However, I think that it creates a bug.
The page selector on the bottom left of the component seems to no longer work, it stays at the page 1.
You can see that in the sample you provided :
Is i
Thanks,
Tuan
Hello Kurthis,
Thanks for the quick update.
Tuan
Alright, thanks for the update