Form field/button order #42

Closed
opened 2024-05-31 15:34:47 +00:00 by phryk · 0 comments
Owner

Fields and buttons currently aren't easily re-orderable.
We'll want an order attribute in ElementContainer that's a list of keys, automatically updated by __setitem__, __delitem__ and friends.
Additionally, one or more functions to easily change the order (setpos(key, pos)?).
Has to be honored by __iter__, .keys and maybe some other functions.

Also, probably want to move logic for _ordered and _pending_render into ElementContainer and add __contains__ as well.

Fields and buttons currently aren't easily re-orderable. We'll want an `order` attribute in `ElementContainer` that's a list of keys, automatically updated by `__setitem__`, `__delitem__` and friends. Additionally, one or more functions to easily change the order (`setpos(key, pos)`?). Has to be honored by `__iter__`, `.keys` and maybe some other functions. Also, probably want to move logic for `_ordered` and `_pending_render` into `ElementContainer` and add `__contains__` as well.
phryk added this to the initial deployment milestone 2024-05-31 15:34:47 +00:00
phryk closed this issue 2024-06-01 13:43:49 +00:00
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: phryk/pdnew#42
No description provided.