LivelyKernel / lively.next

lively.next is a personal programming kit. It emphasizes liveness, directness, and interactivity.
https://lively-next.org
MIT License
66 stars 16 forks source link

Exposed props of `ViewModel` should be specifiable in `part` call akin to `morphic` style props #1022

Open linusha opened 1 year ago

linusha commented 1 year ago

Describe the Feature This would allow us to do

part(LabeledCheckboxLight, {label: '1233'}).openInWorld()

instead of

part(LabeledCheckboxLight,{viewModel: {label: '1233'}}).openInWorld()

where label is exposed on the ViewModel of LabeledCheckboxLight.

merryman commented 11 months ago

I am generally in favor of this idea. I think the reason I was not considering it from the start is because I was worried about issues that may arise with reconciliation. Implementing this will require the following steps: