// TODO: what if module is hidden & shown again abstract sclass ELESuggester > DynSCP { transient LS suggestions; transient S madeFromInput; transient bool processInitialInput; start-thread { init(); if (processInitialInput) ele_onInputAndNow(lambda1 process); else ele_onInput(lambda1 process); dm_registerAs eleSuggester(); } void init {} Pt minimumSize() { ret pt(300, 300); } // override me void process_impl(S input) {} void process(S input) q { temp enter(); // TODO: Why is module not set by q? process_impl(input); } void showSuggestions(S madeFromInput, Iterable l) { setField(+madeFromInput); if (setField(suggestions := takeFirst(100, l))) setComponent(ele_renderSuggestions(madeFromInput, suggestions)); } // API LS suggestions() { ret suggestions; } }