(mainContentContainer: HTMLDivElement)
| 121 | } |
| 122 | |
| 123 | private createButtonBar(mainContentContainer: HTMLDivElement) { |
| 124 | const buttonBarContainer: HTMLDivElement = |
| 125 | mainContentContainer.createDiv(); |
| 126 | this.createButton( |
| 127 | buttonBarContainer, |
| 128 | "Ok", |
| 129 | this.submitClickCallback |
| 130 | ).setCta().buttonEl.setCssStyles({ marginRight: "0" }); |
| 131 | this.createButton( |
| 132 | buttonBarContainer, |
| 133 | "Cancel", |
| 134 | this.cancelClickCallback |
| 135 | ); |
| 136 | |
| 137 | buttonBarContainer.setCssStyles({ |
| 138 | display: "flex", |
| 139 | flexDirection: "row-reverse", |
| 140 | justifyContent: "flex-start", |
| 141 | marginTop: "1rem", |
| 142 | gap: "0.5rem", |
| 143 | }); |
| 144 | } |
| 145 | |
| 146 | private submitClickCallback = (evt: MouseEvent) => this.submit(); |
| 147 | private cancelClickCallback = (evt: MouseEvent) => this.cancel(); |
no test coverage detected