UnitedLexCorp / SimpleTalk

An implementation of HyperTalk in Ohm-js
Apache License 2.0
7 stars 1 forks source link

ST for sub-part reordering #182

Open dkrasner opened 3 years ago

dkrasner commented 3 years ago

Sub-parts of list layout parts (like area) don't have any way to reorder themselves.

We should update a part property (calling it something like order number or order-number) and add a handler on view which will effectively reorder the corresponding DOM element in the childrens' list.

In addition, we should consider adding some grammar and semantics for this, to make it more natural, i.e. instead of just tell button "My Button" to set "order-number" to 1 we could have tell button "My Button" to be first ...