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

Document and rationalize custom event emitters #92

Open
Raruto opened this issue Jul 26, 2022 · 0 comments
Open

Document and rationalize custom event emitters #92

Raruto opened this issue Jul 26, 2022 · 0 comments
Labels
docs Improvements or additions to documentation
Milestone

Comments

@Raruto
Copy link
Collaborator

Raruto commented Jul 26, 2022

Also start thinking how could the be replaced or consolidated within a single place (especially for global ones), as per v3.4 I found these:


Event Emitter API:


inherit(G3WObject, EventEmitter);


EventHub API:


export const VM = new Vue();

return new Vue({
el: '#app',
created() {
// set general metods for the application as GUI.showForm etc ..
self._setupInterface();
// setup layout
self._setupLayout();
//register all services fro the application
self._setUpServices();
// create templateConfig
self.templateConfig = self._createTemplateConfig();
// listen lng change and reset datatable lng
this.$watch(()=> ApplicationState.lng, ()=>{
self._setDataTableLanguage();
});

const app = new Vue({
el: '#app',
...compiledTemplate,
data: {
messages: error_page[language]
}
});

const CatalogEventHub = new Vue();

this.eventBus = new Vue();

const SIDEBAREVENTBUS = new Vue();

const vm = new Vue();

@Raruto Raruto added this to the 5.0 milestone Jul 29, 2022
@Raruto Raruto added the docs Improvements or additions to documentation label Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant