Page MenuHomePhabricator

VE should allow editing metadata for sortable tables
Closed, DuplicatePublic

Description

Currently, VE allows you to make a table sortable, but editing metadata (which columns are sortable, which explicit sort type they use, sort keys for table cells) is only possible in source code. It would be nice, if VE allowed to edit these metadata, too.

I.e:

  • When you are in a table header cell of a sortable table, provide a way to manage "How to sort this column", including options "Not at all" (which will set class="unsortable"), "As numbers" (data-sort-type="number"), etc.
  • When you are in a table content cell of a sortable table, provide a way to manage "How to sort this entry", allowing you to set an individual sort key (which will result in data-sort-key="foo").