MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / disableButton

Method disableButton

examples/mini_app_web/script.js:8–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 this.element = element;
7 };
8 disableButton() {
9 this.element.style.backgroundColor = 'transparent';
10 this.element.style.color = 'var(--tg-theme-button-color)';
11 this.element.style.border = "solid 1px var(--tg-theme-button-color)";
12 };
13 enableButton() {
14 this.element.style.backgroundColor = "var(--tg-theme-button-color)";
15 this.element.style.color = 'var(--tg-theme-text-color)';

Callers 1

script.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected