can we customize the type attribute of field using JS?
<input type="range"
will have to extend AbstractField or anything else?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
can we customize the type attribute of field using JS?
<input type="range"
will have to extend AbstractField or anything else?
for that, I have to extend and override InputField's _prepareInput method and set type as range
file: basic_fields.js
method : _prepareInput
we can add all HTML tag attributes like this
this.$input.attr({
type: range,
// other attributes
});Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
2
mar 15
|
5061 | |||
|
1
cze 23
|
4537 | |||
|
Javascript Widget: appendTo not working
Rozwiązane
|
1
maj 23
|
2991 | ||
|
0
maj 24
|
2799 | |||
|
1
sty 19
|
6170 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Did you try this...?
https://www.odoo.com/apps/modules/9.0/web_slider_widget/
https://www.odoo.com/apps/modules/9.0/int_range_widget/