모델링 샘플 코드를 하나씩 추가 해보겠습니다.
추가위치를 모르시겠는 분은 아래 링크를 클릭해서 강의를 보고 오시면 됩니다.
↓↓↓↓
1.Select
{"field":"fn_ext1","name":"이름","width":"80px","type":"select","data":"apple,banana,grape","label":"사과,바나나,포도"},
- 결과화면 -
2.Radio
{"field":"fn_ext1","name":"이름","width":"60px","type":"radio","data":"apple,banana,grape","label":"사과,바나나,포도"},
- 결과화면 -
3.Text
{"field":"fn_ext1","name":"이름","width":"100%","type":"text"},
- 결과화면 -
4.Text Readonly
{"field":"fn_ext1","name":"이름","width":"100%","type":"text_readonly"},
{"field":"fn_ext1","name":"이름","width":"100%","type":"text_calendar","class":"show-datepicker"}, (텍스트 입력창 클릭시 달력이 나타남, show-datepicker 클래스도 반드시 추가해야 함)
{"field":"fn_ext1","name":"이름","width":"100%","type":"textarea"},
{"field":"fn_ext1","name":"이름","width":"100%","type":"password"},
{"field":"fn_ext1","name":"이름","width":"100%","type":"hidden"},
{"field":"fn_ext1","name":"이름","width":"60px","type":"checkbox","label":"동의"},
{"field":"fn_ext1","name":"과일","type":"checkbox2","label":"사과,바나나,포도"},
11.Combo(버튼 선택에 따라 텍스트가 나타남)
{"field":"fn_ext1","name":"옵션","width":"60px","type":"radio","data":"1,0","label":"사용,사용안함","default":"0","combo":{"field":"fn_ext2","type":"text","width":"300px","match_type":"show","match_value":"1","parent_style":""}}, - "field"는 "fn_file1, fn_file2, fn_file3, ......., fn_file10" 와 같은 순번으로 입력 {"field":"fn_file1","name":"파일","width":"300px","type":"file"},
(view) {"field":"file_download","name":"첨부파일","width":"300px","type":"file_download","class":"file-download"}, - 결과화면 -
|