Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::VirtualRowEditParticipant Class Referenceabstract

Typed opt-in for custom editor state owned by a delegated row. Custom controls call RowContext::admitEdit before changing an unfinished draft. Opaque widget caches are not cloned or reset by the host. All operations run on the UI thread. More...

#include <virtual_rows.hpp>

Public Member Functions

virtual ~VirtualRowEditParticipant ()=default
 Release only the participant's own state.
virtual bool unfinished () const noexcept=0
virtual std::expected< void, TreeError > beforeLeave ()=0
virtual void retire () noexcept
 Retire the participant after its row identity has closed; never commit/cancel backend work.

Detailed Description

Typed opt-in for custom editor state owned by a delegated row. Custom controls call RowContext::admitEdit before changing an unfinished draft. Opaque widget caches are not cloned or reset by the host. All operations run on the UI thread.

Member Function Documentation

◆ beforeLeave()

virtual std::expected< void, TreeError > portals::VirtualRowEditParticipant::beforeLeave ( )
pure virtual
Returns
Admission to hide the row, or a typed refusal before visibility/focus changes. This nonblocking preflight must not mutate the tree/model or commit/cancel input.

◆ unfinished()

virtual bool portals::VirtualRowEditParticipant::unfinished ( ) const
pure virtualnoexcept
Returns
Whether draft, validation or admitted work still requires this exact row assignment.

The documentation for this class was generated from the following file: