EzSpacer

EzSpacer

공간 차지용 관리 컴포넌트

Constructor

new EzSpacer()

Author:
  • 이승갑 (dltmdrkq2@gmail.com)
  • 정민석 (whitn86@gmail.com)

Members

direction :"left"|"right"|"top"|"bottom"

Description:
  • spacer 방향

spacer 방향

Type:
  • "left" | "right" | "top" | "bottom"

refs :string

Description:
  • 위치 계산에 참조할 컴포넌트 ID 목록 설정
    Spacer와 형재관계여야함, 여러개 입력시 구분자 는 ','

위치 계산에 참조할 컴포넌트 ID 목록 설정
Spacer와 형재관계여야함, 여러개 입력시 구분자 는 ','

Type:
  • string

start :number

Description:
  • 이동 가능 범위 최소값
    direction에 따라 기존이 달라집니다.

    • vertical일경우 top
    • horizontal일 경우 left

이동 가능 범위 최소값
direction에 따라 기존이 달라집니다.

  • vertical일경우 top
  • horizontal일 경우 left
Type:
  • number

(static, readonly) LOG_KEY :string

Description:
  • 로깅용 키

로깅용 키

Type:
  • string

Methods

set_direction(direction)

Description:
  • spacer 방향 설정

Example
this.spacer.set_direction("left");
Parameters:
Name Type Description
direction "left" | "right" | "top" | "bottom"

spacer 방향

set_end(end)

Description:
  • 이동 가능 범위 최대값 설정

Example
this.spacer.set_end(200);
Parameters:
Name Type Description
end number

이동 가능 범위 최대값
direction에 따라 기존이 달라집니다.

  • vertical일경우 top
  • horizontal일 경우 left

set_refs(refs)

Description:
  • 위치 계산에 참조할 컴포넌트 ID 목록 설정

Example
this.spacer.set_refs("Static00,Static01");
Parameters:
Name Type Description
refs string

위치 계산에 참조할 컴포넌트 ID 목록
Spacer와 형재관계여야함, 여러개 입력시 구분자 는 ','

set_start(start)

Description:
  • 이동 가능 범위 최소값 설정

Example
this.spacer.set_start(20);
Parameters:
Name Type Description
start number

이동 가능 범위 최소값
direction에 따라 기존이 달라집니다.

  • vertical일경우 top
  • horizontal일 경우 left