“Function finder”, issue #1469

Hi folks,

TL/DR; unless there are objections, I’m going to update the build scripts to replace the long F&O function drop-down list with a search box.

L/R:

I made an attempt at improving the function finder interface in the F&O specification per issue #1469. I posted a link to a “hand crafted” version a couple of weeks ago:

   https://qt4cg.org/pr/datalist/xpath-functions-40/Overview.html

Response was generally positive, I think. 

One open question is whether the segregation by namespace should be preserved. As I’ve coded it up, there’s just one search box and if you want the array:empty function, you can search for “array:empty” or you can just search for “empty” and select “array:empty” from the drop down.

That could be changed so that there was still a namespace prefix dropdown and searching was limited to that namespace, I suppose. It seemed easier to me to just have one list since searching narrows it down pretty quickly.

I guess the other thing to note is that I’m relying on datalist which is widely, but not universally, supported

   https://caniuse.com/?search=datalist

The exact presentation of the list varies by browser, so you might want to try it out in your favorites and see what you think. It doesn’t seem to work especially well on mobile devices, but that whole sidebar navigation setup is a bit clunky on small screens anyway.

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh
Saxonica

Received on Thursday, 10 October 2024 09:13:58 UTC