Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

View with js plugin/widget rendering flow #840

Description

@danielesalvatore

Hi everyone,

I would like to know what is the best work-flow and code organization to render a page with a UI widget in it (any of the UI graphic library, e.g. a dropdown, image gallery or whatever).

My current configuration/flow is:

(router triggers page change, dispatcher listen to it and initialize Module Controller)
Controller initialization.
Controller action invocation.
Within this action, the view is instantiated and set as controller property.
Controller call a view method to render third party UI object (a different call from the automatic call of render(). Given that i pre-load the template with RequireJS this should be always a sync call ).
Within this view's method, the third party lib is called and the UI object rendered.

I would appreciate some feedback about this flow or the best practice to do so.
Would it be better to override the render() method?

Thank you very much for your support.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions