File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
services/static-webserver/client/source/class/osparc/filter Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * oSPARC - The SIMCORE frontend - https://osparc.io
3+ * Copyright: 2025 IT'IS Foundation - https://itis.swiss
4+ * License: MIT - https://opensource.org/licenses/MIT
5+ * Authors: Odei Maiz (odeimaiz)
6+ */
7+
8+ qx . Class . define ( "osparc.filter.SearchingCollaborators" , {
9+ extend : qx . ui . basic . Atom ,
10+ include : osparc . filter . MFilterable ,
11+ implement : osparc . filter . IFilterable ,
12+
13+ construct : function ( ) {
14+ this . base ( arguments ) ;
15+
16+ this . set ( {
17+ label : this . tr ( "Searching..." ) ,
18+ icon : "@FontAwesome5Solid/circle-notch/14" ,
19+ appearance : "tagbutton" ,
20+ gap : 10 ,
21+ } ) ;
22+
23+ this . getChildControl ( "icon" ) . getContentElement ( ) . addClass ( "rotate" ) ;
24+ this . getChildControl ( "label" ) . setTextColor ( "text" ) ;
25+ } ,
26+
27+ members : {
28+ _filter : function ( ) {
29+ this . exclude ( ) ;
30+ } ,
31+
32+ _unfilter : function ( ) {
33+ this . show ( ) ;
34+ } ,
35+
36+ _shouldApplyFilter : function ( data ) {
37+ if ( data . name ) {
38+ return true ;
39+ }
40+ return false ;
41+ } ,
42+
43+ _shouldReactToFilter : function ( data ) {
44+ if ( data . name ) {
45+ return true ;
46+ }
47+ return false ;
48+ }
49+ }
50+ } ) ;
You can’t perform that action at this time.
0 commit comments