MCPcopy Create free account
hub / github.com/CatMuse/HiNote / createBackButton

Method createBackButton

src/views/managers/UIInitializer.ts:100–116  ·  view source on GitHub ↗

* 创建返回按钮

(parent: HTMLElement)

Source from the content-addressed store, hash-verified

98 * 创建返回按钮
99 */
100 private createBackButton(parent: HTMLElement): { backButtonContainer: HTMLElement; backButton: HTMLElement } {
101 const backButtonContainer = parent.createEl("div", {
102 cls: "highlight-back-button-container"
103 });
104
105 const backButton = backButtonContainer.createEl("div", {
106 cls: "highlight-back-button"
107 });
108
109 setIcon(backButton, "arrow-left");
110 backButton.createEl("span", {
111 text: t("BACK"),
112 cls: "highlight-back-button-text"
113 });
114
115 return { backButtonContainer, backButton };
116 }
117
118 /**
119 * 创建搜索输入框

Callers 1

initializeUIMethod · 0.95

Calls 1

tFunction · 0.90

Tested by

no test coverage detected