Class: Field

(Version : 2.0.4)

WUX.Field

new Field

폼의 필드들을 지원하는 인터페이스입니다. 필드는 레이블을 가지며 값을 다루는 method 들을 정의합니다.

Property
String
label

레이블

Properties:
Name Type Description
레이블 String
inherited from
Field
modified

private boolean

inherited from
Field
Method
String
getLabel
Returns:
레이블
Type
String
Example
 var label = WUX.getComponent('comp').getLabel();
inherited from
Field
String
getValue
필드의 value를 반환합니다.
Returns:
value
Type
String
Example
 WUX.getComponent('comp').getValue();
inherited from
Field
Boolean
isReadOnly
컴포넌트의 읽기전용 상태를 반환합니다.
Returns:
읽기 전용 여부
Type
Boolean
Example
 var readOnly = WUX.getComponent('comp').isreadOnly(); // 상태 값
         true, false 반환
inherited from
Field
void
setLabel
레이블의 텍스트를 변경합니다.
Parameters:
Name Type Description
레이블 String 텍스트
Example
 WUX.getComponent('comp').setLabel('레이블');
inherited from
Field
void
setReadOnly
읽기 전용 속성을 true, false로 설정합니다.
Parameters:
Name Type Description
readOnly Boolean 읽기전용 여부
Example
 WUX.getComponent('comp').setReadOnly(true); // 읽기 설정
         WUX.getComponent('comp').setReadOnly(false); // 비읽기 설정
inherited from
Field
void
setValue
필드의 value를 변경합니다.
Parameters:
Name Type Description
value String or Number value값 변경
Example
 WUX.getComponent('comp').setValue('Yes'); //String
         WUX.getComponent('comp').setValue('10000'); //Number
inherited from
Field
Events