can we customize the type attribute of field using JS?
<input type="range"
will have to extend AbstractField or anything else?
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
});Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
2
mrt. 15
|
6099 | |||
|
1
jun. 23
|
5644 | |||
|
1
mei 23
|
4325 | |||
|
0
mei 24
|
3646 | |||
|
1
jan. 19
|
7089 |
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/