Giter Club home page Giter Club logo

Comments (5)

kieregh avatar kieregh commented on July 28, 2024

우선 아래의 커밋 참조하시기 바랍니다.
13f74c0

마크업 예제는 아래를 참조하시기 바랍니다.
http://www.withconsumer.net/rc-test/switch/default.html

이상입니다.

from rc.

gitaeks avatar gitaeks commented on July 28, 2024

다른 폼관련 컴포넌트는 클릭환경에서도 작동되는 되요. `switch' 컴포넌트는 오직 터치환경에서만 작동되는 것 같습니다. touch/click 두가지 환경을 지원하면 좋을 것 같습니다.

from rc.

gitaeks avatar gitaeks commented on July 28, 2024

이벤트 명을 rc.switched 로 하신것을 checked.rc.switch 로 변경 하였습니다.
기존의 컴포넌트 이벤트의 네이밍 체계와 통일해야 할 필요성 때문 입니다.
아울러 checked 라는 용어를 선택한 것은 switch가 기능관점에서 checkbox 와 같기 때문입니다.


image


참고

http://rc.kimsq.com/components/switch/#event

from rc.

kieregh avatar kieregh commented on July 28, 2024

우선...아래와 같이 click 이벤트 추가 적용 및 네이밍 관련 아래와 같이 커밋했습니다.
426d467

##이벤트 네이밍 이슈 관련 제안
checked 는 On 상태를 의미하므로 반복되는 switch On/Off 이벤트 네이밍으로는 부적절한 것 같습니다.
그래서, 기존 rc 이벤트 네이밍 체계에도 부합되고 의미적으로도 매칭이 되도록 아래와 같이 제안합니다.
changed.rc.switch

참고로, bs switch 이벤트 네이밍 역시 changed 를 사용하고 있습니다.
http://www.bootstrap-switch.org/events.html

또한, 아래의 예제에서 switch 속성에 {cursor: pointer} 를 추가해서 데스크탑 환경을 고려했습니다.
http://www.withconsumer.net/rc-test/switch/default.html

이상입니다.

from rc.

gitaeks avatar gitaeks commented on July 28, 2024

아래와 같이 처리했습니다.
53849f6

from rc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.