File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 export let task_id;
1616 let flattened = null ;
1717 let status = null ;
18+ let initialFilterItem = null ;
1819
1920 let table;
2021 let cutoff = 3 ;
4041 return ;
4142 }
4243 flattened = flatten (await resp .json ());
44+ initialFilterItem = flattened? .at (0 )? .item ;
4345 });
4446< / script>
4547
7880 clipboard: " copy" ,
7981 clipboardCopyStyled: false ,
8082 columns: resultColumns,
83+ initialHeaderFilter: [
84+ {
85+ field: " item" ,
86+ value: initialFilterItem,
87+ },
88+ ],
8189 }}
8290/ >
Original file line number Diff line number Diff line change @@ -2,6 +2,14 @@ const resultColumns = [
22 {
33 title : "Search Item" ,
44 field : "item" ,
5+ headerFilter : "select" ,
6+ headerFilterParams : {
7+ values : true ,
8+ elementAttributes : {
9+ style :
10+ "padding: 4px; width: 100%; box-sizing: border-box; cursor: pointer;" ,
11+ } ,
12+ } ,
513 } ,
614 {
715 title : "Results" ,
You can’t perform that action at this time.
0 commit comments