Skip to main content

set of ui components to ease data browsing

Project description

Summary

Set of ui components to ease data browsing.

Setup the SearchUi component

Install the dependencies:

npm install

Then build the css and js files

npm run build

For the dev environment:

npm run watch

Custom facets

RelationSwitchFacet

This facet examines current rset and selected variable and displays a list of relations that can be traversed from the selected variable. When the user clicks on one of those relations, he gets redirected to the resulting page.

For instance, if the original RQL is:

Any X WHERE X is CWUser

then the facet displays (among other relations) in_group and in_state relations. The corresponding RQL for those relations is:

Any G WHERE X is CWUser, X in_group G
Any S WHERE X is CWUser, X in_state S

This facet therefore differs from other facets in that it chagnes the RQL selection (on the left of the WHERE).

NOTE:

while this original implementation is based on facets, it may not be the best choice, considering its behaviour differences:

  • it changes the left part of the WHERE,

  • the user gets redirected to another page,

  • the facet is not reloaded with standard add_rql_restrticions() and possible_values() API calls but is completely regenerated when the facets-content-loaded event is triggered.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cubicweb-searchui-0.4.1.tar.gz (99.7 kB view details)

Uploaded Source

File details

Details for the file cubicweb-searchui-0.4.1.tar.gz.

File metadata

  • Download URL: cubicweb-searchui-0.4.1.tar.gz
  • Upload date:
  • Size: 99.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.7.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.13

File hashes

Hashes for cubicweb-searchui-0.4.1.tar.gz
Algorithm Hash digest
SHA256 34b8cf10882a8ad04940c8588df9b30db5e5d857421eb81bf45d550efb8b5fde
MD5 bfc8e5c337436f72caecaecc1dc1e100
BLAKE2b-256 cd83ff9b82443d54d7417ac7381199dda9cce98bab460d168528960c5abe8882

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page