Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] 마커 상태 변경 전후 callback 등록 기능 #1

Open
yeori opened this issue Jan 1, 2021 · 0 comments
Open

[FEATURE] 마커 상태 변경 전후 callback 등록 기능 #1

yeori opened this issue Jan 1, 2021 · 0 comments
Assignees
Labels

Comments

@yeori
Copy link
Owner

yeori commented Jan 1, 2021

정의

사용자가 마커의 상태를 변경할때 이어지는 작업(서버에 요청 전송 등)을 하기 위한 지점이 필요함

Sample

    <VueKakaoMap
      :style="{ height: '400px' }"
      @state:before="(marker, current, next) => api_call_to_server(...)"
      @state:after="(marker, prev, current) => after_state_changed(...)"
    />
  • @state:before - current 에서 next로 바꾸기 전
  • @state.after - prev에서 current로 바뀐 후(current는 @state:before에서 next와 동일)

@state:before에서 return false 를 호출할 경우 상태 변경을 취소하는 기능도 필요할 듯

@yeori yeori added the FEATURE label Jan 1, 2021
@yeori yeori self-assigned this Jan 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant