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
});
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
2
مارس 15
|
4242 | ||
|
1
يونيو 23
|
3561 | ||
|
1
مايو 23
|
2125 | ||
|
0
مايو 24
|
2097 | ||
|
1
يناير 19
|
5249 |
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/