@@ -11,6 +11,11 @@ export default {
1111 control : "select" ,
1212 options : [ "true" , "false" ] ,
1313 } ,
14+ columnView : {
15+ control : "select" ,
16+ options : [ "50%" ] ,
17+ description : "50% mimics the webspark 2 column layout" ,
18+ } ,
1419 } ,
1520 args : { alphaFilter : "false" } ,
1621 decorators : [ story => < FullLayout > { story ( ) } </ FullLayout > ] ,
@@ -39,59 +44,61 @@ const filters = {
3944
4045export const webDirectoryExampleDepartments = args => {
4146 return (
42- < div className = "container" >
4347 < div className = "uds-content-align" >
4448 < div className = "row" >
45- < div className = " col-md-6">
46- < WebDirectory
47- searchType = "departments"
48- deptIds = "1349,1353,32397,1518,1520,3534,1350,334996,1504,2000,2003,159390"
49- API_URL = "https://test-asu-isearch.ws.asu.edu"
50- searchApiVersion = "/api/v1/"
51- filters = { filters }
52- display = { { ...display , grid : "true" } }
53- alphaFilter = { args . alphaFilter }
54- // appPathFolder="/my/custom/path/to/component/root/example"
55- />
56- </ div >
49+ < div className = { args . columnView === "50%" ? " col-md-6" : "" } >
50+ < WebDirectory
51+ searchType = "departments"
52+ deptIds = "1349,1353,32397,1518,1520,3534,1350,334996,1504,2000,2003,159390"
53+ API_URL = "https://test-asu-isearch.ws.asu.edu"
54+ searchApiVersion = "/api/v1/"
55+ filters = { filters }
56+ display = { { ...display , grid : "false" } }
57+ alphaFilter = { args . alphaFilter }
58+ // appPathFolder="/my/custom/path/to/component/root/example"
59+ />
60+ </ div >
5761 </ div >
5862 </ div >
59- </ div >
6063 ) ;
6164} ;
6265
6366export const webDirectoryExamplePeople = args => {
6467 return (
65- < div className = "container" >
6668 < div className = "uds-content-align" >
67- < WebDirectory
68- searchType = "people"
69- ids = "mcrow:454517,mdenke:1350,jagarc50:1350,lhillzev:1353"
70- API_URL = "https://test-asu-isearch.ws.asu.edu"
71- searchApiVersion = "/api/v1/"
72- display = { display }
73- alphaFilter = { args . alphaFilter }
74- // appPathFolder="/my/custom/path/to/component/root/example"
75- />
76- </ div >
69+ < div className = "row" >
70+ < div className = { args . columnView === "50%" ? "col-md-6" : "" } >
71+ < WebDirectory
72+ searchType = "people"
73+ ids = "mcrow:454517,mdenke:1350,jagarc50:1350,lhillzev:1353"
74+ API_URL = "https://test-asu-isearch.ws.asu.edu"
75+ searchApiVersion = "/api/v1/"
76+ display = { display }
77+ alphaFilter = { args . alphaFilter }
78+ // appPathFolder="/my/custom/path/to/component/root/example"
79+ />
80+ </ div >
81+ </ div >
7782 </ div >
7883 ) ;
7984} ;
8085
8186export const webDirectoryExampleDepartmentsAndPeople = args => {
8287 return (
83- < div className = "container" >
8488 < div className = "uds-content-align" >
85- < WebDirectory
86- searchType = "people_departments"
87- ids = ",tgrandli:1344,mcrow:1343,jcunnin8:1358,ccherrer:1358,csmudde:1358"
88- API_URL = "https://test-asu-isearch.ws.asu.edu"
89- searchApiVersion = "/api/v1/"
90- display = { display }
91- alphaFilter = { args . alphaFilter }
92- // appPathFolder="/my/custom/path/to/component/root/example"
93- />
94- </ div >
89+ < div className = "row" >
90+ < div className = { args . columnView === "50%" ? "col-md-6" : "" } >
91+ < WebDirectory
92+ searchType = "people_departments"
93+ ids = ",tgrandli:1344,mcrow:1343,jcunnin8:1358,ccherrer:1358,csmudde:1358"
94+ API_URL = "https://test-asu-isearch.ws.asu.edu"
95+ searchApiVersion = "/api/v1/"
96+ display = { display }
97+ alphaFilter = { args . alphaFilter }
98+ // appPathFolder="/my/custom/path/to/component/root/example"
99+ />
100+ </ div >
101+ </ div >
95102 </ div >
96103 ) ;
97104} ;
0 commit comments