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
});สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
2
มี.ค. 15
|
5135 | |||
|
1
มิ.ย. 23
|
4655 | |||
|
Javascript Widget: appendTo not working
แก้ไขแล้ว
|
1
พ.ค. 23
|
3033 | ||
|
0
พ.ค. 24
|
2856 | |||
|
1
ม.ค. 19
|
6199 |
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/