콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
8301 화면

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
3월 15
4290
1
6월 23
3599
1
5월 23
2159
0
5월 24
2122
1
1월 19
5288