Skip to content

Extend Projector.append so it can handle Classes as well #128

@peterwestendorp

Description

@peterwestendorp

Right now, when I want to append a Class based Maquette component, I have to do this:
let dateInput = new DateInput(); projector.initialize(dateInput.renderMaquette.bind(dateInput));

It would be nice if projector.initialize would be able to do the binding for me, so I would only have to pass in a Class: projector.initialize(new DateInput()).
This would also require a change in MaquetteQuery on the initialize method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions