@@ -11,9 +11,11 @@ const SORT_ICON_ACTIVE = 'jp-codeSnippet-sort-icon-active';
11
11
const CODE_SNIPPET_SORT_CONTENT = 'jp-codeSnippet-sort-content' ;
12
12
const CODE_SNIPPET_SORT_SORTBY = 'jp-codeSnippet-sort-sortby' ;
13
13
const CODE_SNIPPET_SORT_OPTION = 'jp-codeSnippet-sort-option' ;
14
+ // const CODE_SNIPPET_SORT_SELECTED = 'jp-codeSnippet-sort-selected';
14
15
15
16
/* Add on click to span and then create function to actually do the sorting*/
16
17
/* Right now the coloring of the arrows is off, make sure when dialog disappears arrow turns back to gray*/
18
+ /* Add innerHTML for the checkmark when something is clicked. When its clicked again remove the checkmark. */
17
19
18
20
class OptionsHandler extends Widget {
19
21
constructor ( display : SortTools ) {
@@ -49,27 +51,29 @@ export class SortTools extends React.Component {
49
51
body . className = 'jp-codeSnippet-sort-test-container' ;
50
52
const optionsContainer = document . createElement ( 'div' ) ;
51
53
optionsContainer . className = CODE_SNIPPET_SORT_CONTENT ;
52
- const insertSnip = document . createElement ( 'div' ) ;
53
- insertSnip . className = CODE_SNIPPET_SORT_SORTBY ;
54
- // 4 space start to sortby
55
- insertSnip . textContent = ' Sort by:' ;
56
- /*insertSnip.onclick = (): void => {};*/
57
- const copySnip = document . createElement ( 'div' ) ;
58
- copySnip . className = CODE_SNIPPET_SORT_OPTION ;
59
- copySnip . textContent = ' Last Modified' ;
54
+ const sortBy = document . createElement ( 'div' ) ;
55
+ sortBy . className = CODE_SNIPPET_SORT_SORTBY ;
56
+ // 4 space start
57
+ sortBy . textContent = ' Sort by:' ;
58
+ const lastMod = document . createElement ( 'div' ) ;
59
+ lastMod . className = CODE_SNIPPET_SORT_OPTION ;
60
+ // const checkMark = document.createElement('span');
61
+ // checkMark.className = CODE_SNIPPET_SORT_SELECTED;
62
+ // copySnip.appendChild(checkMark);
63
+ lastMod . textContent = ' Last Modified' ;
60
64
/*copySnip.onclick = (): void => {};*/
61
- const editSnip = document . createElement ( 'div' ) ;
62
- editSnip . className = CODE_SNIPPET_SORT_OPTION ;
63
- editSnip . textContent = ' Date Created: Newest' ;
65
+ const createNew = document . createElement ( 'div' ) ;
66
+ createNew . className = CODE_SNIPPET_SORT_OPTION ;
67
+ createNew . textContent = ' Date Created: Newest' ;
64
68
/*editSnip.onclick = (): void => {};*/
65
- const deleteSnip = document . createElement ( 'div' ) ;
66
- deleteSnip . className = CODE_SNIPPET_SORT_OPTION ;
67
- deleteSnip . textContent = ' Date Created: Oldest' ;
69
+ const createOld = document . createElement ( 'div' ) ;
70
+ createOld . className = CODE_SNIPPET_SORT_OPTION ;
71
+ createOld . textContent = ' Date Created: Oldest' ;
68
72
/*deleteSnip.onclick = (): void => {};*/
69
- optionsContainer . appendChild ( insertSnip ) ;
70
- optionsContainer . appendChild ( copySnip ) ;
71
- optionsContainer . appendChild ( editSnip ) ;
72
- optionsContainer . appendChild ( deleteSnip ) ;
73
+ optionsContainer . appendChild ( sortBy ) ;
74
+ optionsContainer . appendChild ( lastMod ) ;
75
+ optionsContainer . appendChild ( createNew ) ;
76
+ optionsContainer . appendChild ( createOld ) ;
73
77
body . append ( optionsContainer ) ;
74
78
return body ;
75
79
}
0 commit comments