maquette icon indicating copy to clipboard operation
maquette copied to clipboard

Extend Projector.append so it can handle Classes as well

Open peterwestendorp opened this issue 8 years ago • 0 comments

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.

peterwestendorp avatar Sep 13 '17 06:09 peterwestendorp