I am making nice progress on my small custom schema experiment. Hussein,
thanks a lot for your help and responsiveness.

The collapsible feature is really nice!

One question: when collapsed, if none of the content of the collapsed node
is visible, the collapsed version is no longer an "outline" and becomes not
readable.

I tried the suggested "not-collapsible-head" but this changed the behavior
of collapsing completely, often leaving an entire big widget like a table
visible even when collapsed.

elem {
        collapsible: yes;
        not-collapsible-head: 1; /* not good */
}

In every case where I would like a "header" version when collapsed, it would
suffice to just display a read-only version of the 1st line of the hidden
element content with "..." (and truncate it for display if too long).

Would this be possible?

If you need to allow other options, perhaps something like:

elem {
        collapsible: yes;
        collapsed-content: first-line | other options
}

Thanks!


Reply via email to