rpbouman / huey

A UI for DuckDB
MIT License
250 stars 17 forks source link

Filter axis items should be expandable and/or resizable to reveal their values #18

Closed rpbouman closed 8 months ago

rpbouman commented 9 months ago

The functional requirement is to have a visual on the values/conditions, esp. for those items that are not on the rows/columns axes.

Did a little experiment and I like how it looks and feels:

image

code for the filter item is something like this:

<!-- This is the normal li we use for axis items -->
<li
  style="overflow: hidden; resize: both"
>
  <details>
    <summary>Caption</summary>
    <ol>
      <li>Value1</li>
      <li>Value2</li>
    </ol>
  </details>
</li>

We may need to play a little bit with whether the li or the details element needs to be resizable and the resize property should probably be available only when the details element is expanded.