Hi,
I have button, and I want to make it disabled after code execution:
="object" class="btn-primary"
Is it possible to change class and append `disabled` after clicking button in call_function?
Hi,
I have button, and I want to make it disabled after code execution:
="object" class="btn-primary"
Is it possible to change class and append `disabled` after clicking button in call_function?
adding class through js, write an onclick function for that particular button and write similar code inside it
var element = document. getElementById('#button_id');
element. classList. add('disabled');
is it possible to change class, from python code? in method `call_function` itself, after button is pressed?
One way to do this is:
Have a Binary field: is_button_enabled
Have 2 identical buttons is view display, like:
with atrs: invisible and check is_button_enabled field for button1 and button2
attrs="{'invisible': [('is_button_enabled', '=', False)]}
and
attrs="{'invisible': [('is_button_enabled', '=', True)]}
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
2
maalisk. 23
|
12804 | |||
|
Cacher le bouton "créer" d'une liste
Ratkaistu
|
2
maalisk. 23
|
4540 | ||
|
0
maalisk. 22
|
3278 | |||
|
1
toukok. 21
|
6225 | |||
|
Dynamically Hide Button based on Groups
Ratkaistu
|
1
syysk. 20
|
5710 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.