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
Built Distribution
File details
Details for the file cubicweb-searchui-1.0.0.tar.gz
.
File metadata
- Download URL: cubicweb-searchui-1.0.0.tar.gz
- Upload date:
- Size: 101.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a4a21a3abd0598ede5c253f0ab95df55d2d04fb5dc8f4cfb634cf2b85a37879 |
|
MD5 | 8b89c72595604aa99a235468b673ca88 |
|
BLAKE2b-256 | 21fa159bdd32be64f0811e1212cf6f655201cdbc0406df4da0e81783fdae50a3 |
File details
Details for the file cubicweb_searchui-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: cubicweb_searchui-1.0.0-py3-none-any.whl
- Upload date:
- Size: 101.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79d848749b6529195eeca36f15e5514a8605cd107955b75948a706f4c0a093e7 |
|
MD5 | d5511f8be10b32cc579f90cbe6a3db90 |
|
BLAKE2b-256 | 1a3696a110497b2b34815dbbcdb4968eface210a439a63f94cd06cd7bdaaf433 |