플러그인과 테마 컴포넌트 타입 간에는 차이가 있습니다.
표로 정리해 보았습니다. (경미한 오류나 그룹화 방식이 다를 수 있습니다.)
| 카테고리 | 기능 | 플러그인 문법 | TC 문법 |
|---|---|---|---|
| 기본 타입 | 문자열 | type: stringmin: ..max: ..regex: ..secret: true/falseglobal validator: class name |
type: stringmin: ..max: .. - - - - |
| 멀티라인 텍스트 | type: stringtextarea: true |
type: stringtextarea: true |
|
| 정수 | type: integermin: ..max: .. |
type: integermin: ..max: .. |
|
| 실수 | type: floatmin: ..max: .. |
type: floatmin: ..max: .. |
|
| 불리언 | type: bool |
type: bool |
|
| 시간 | type: time |
- | |
| 널 | type: null |
- | |
| 선택 타입 | 열거형 (드롭다운) | type: enumchoices: [option1, option2]enum: .. |
type: enumchoices: [option1, option2] |
| 카테고리 | type: category |
- | |
| 색상 | type: color |
- | |
| 그룹 | type: group |
- | |
| 이메일 | type: email |
- | |
| 사용자 이름 | type: username |
- | |
| 목록 타입 | 일반 목록 | type: listallow_any: true/false |
type: list |
| 단순/컴팩트 목록 | type: simple_list또는 type: listlist_type: compactlist_type: simple |
type: listlist_type: compactlist_type: simple |
|
| 카테고리 목록 | type: category_list |
type: listlist_type: category |
|
| 그룹 목록 | type: group_list |
type: listlist_type: group |
|
| 태그 목록 | type: tag_list |
type: listlist_type: tag |
|
| 태그 그룹 목록 | type: tag_group_list |
- | |
| URL 목록 | type: url_list |
- | |
| 호스트 목록 | type: host_list |
- | |
| 값 목록 | type: value_list |
- | |
| 이모지 목록 | type: emoji_list |
- | |
| 파일 타입 | 업로드 | type: upload |
type: upload |
| 업로드된 이미지 목록 | type: uploaded_image_list |
- | |
| 파일 크기 제한 | type: file_size_restrictionmin: ..max: .. |
- | |
| 특수 타입 | HTML (비권장) | type: html_deprecated |
- |
| JSON 객체 | 비권장 | 비권장 | |
| 객체 | - | type: objects |