Class: WBComboBox
Source Location: /php/ui/winbinder/WBComboBox.php
Class WBComboBox
Inherited Properties, Constants, and Methods
Method Summary
| string |
getValue() |
선택되어진 index의 text 얻어오기 |
Methods
void addItem(
string
$text
)
|
|
아이템 추가 하기
Parameters:
API Tags:
void deleteItem(
int|string
$data
)
|
|
아이템 삭제 하기
Parameters:
|
int|string |
$data: |
지워질 인덱스 또는 텍스트 |
API Tags:
현재 선택되어진 index 얻어오기
API Tags:
string getValue(
[int|string
$index = '']
)
|
|
선택되어진 index의 text 얻어오기
Parameters:
|
int|string |
$index: |
$index가 공백일 경우 현재 선택되어진 index, 아니면 지정된 $index |
API Tags:
| Return: | text |
| Access: | public |
Redefinition of:
- WBControl::getValue()
- value 설정
void setItems(
array|string
$items
)
|
|
아이템 리스트 설정
Parameters:
|
array|string |
$items: |
아이템 리스트 |
API Tags:
void setSelectedIndex(
[int
$index = -1]
)
|
|
리스트 선택하기
Parameters:
|
int |
$index: |
선택되어진 index, -1은 선택되어진 리스트가 없음 |
API Tags:
void setSize(
$width,
$height
)
|
|
Parameters:
API Tags:
Redefinition of:
- WBComponent::setSize()
- 윈도우 또는 컨트롤 크기 조정하기
void sort(
[bool
$asc = true], [
$sort_flag = 'string']
)
|
|
정렬 설정
Parameters:
|
bool |
$asc: |
true : 내림차순, false : 오름차순 , 문자열 기반으로 정렬 |
|
|
$sort_flag: |
|
API Tags:
Redefinition of:
- WBControl::sort()
- 정렬하기
|
|