TriplyDB / Yasgui

Yet Another Sparql GUI
https://yasgui.triply.cc
MIT License
190 stars 55 forks source link

Configuring the list "catalogueEndpoints" in current Yasui Version #149

Closed gpetz closed 4 years ago

gpetz commented 4 years ago

As explained in https://github.com/TriplyDB/Yasgui/issues/114, is there still support of YASGUI.defaults.catalogueEndpoints in the current version of Yasgui?

LaurensRietveld commented 4 years ago

There is. There was already documentation (see https://triply.cc/docs/yasgui-api#yasgui-config). Extended it with a bit of text on how to change the rendering of the suggestions

gpetz commented 4 years ago

Thanx, but the endpointCatalogueOptions are not working for me. Am I missing something?

const yasgui = new Yasgui(document.getElementById("yasgui"), {
    requestConfig: {
        endpoint: "http://example.com/sparql1"
    },
    copyEndpointOnNewTab: false,
    endpointCatalogueOptions: {
        getData: () => {
            return [{
                    endpoint: "http://example.com/sparql1"
                },
                {
                    endpoint: "http://example.com/sparql2"
                }
            ];
        }
    }
});

grafik

LaurensRietveld commented 4 years ago

You stumbled across the UX issue from #148. The search field is a filter. I.e., to see all suggestions, remove the currently selected endpoint and you should see them