Comments (5)
우선 아래의 커밋 참조하시기 바랍니다.
13f74c0
마크업 예제는 아래를 참조하시기 바랍니다.
http://www.withconsumer.net/rc-test/switch/default.html
이상입니다.
from rc.
다른 폼관련 컴포넌트는 클릭환경에서도 작동되는 되요. `switch' 컴포넌트는 오직 터치환경에서만 작동되는 것 같습니다. touch/click 두가지 환경을 지원하면 좋을 것 같습니다.
from rc.
이벤트 명을 rc.switched
로 하신것을 checked.rc.switch
로 변경 하였습니다.
기존의 컴포넌트 이벤트의 네이밍 체계와 통일해야 할 필요성 때문 입니다.
아울러 checked
라는 용어를 선택한 것은 switch
가 기능관점에서 checkbox
와 같기 때문입니다.
참고
http://rc.kimsq.com/components/switch/#event
from rc.
우선...아래와 같이 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.
아래와 같이 처리했습니다.
53849f6
from rc.
Related Issues (20)
- backdrop 지속시간 관련
- photoswipe 익스텐션 구조화 요청 HOT 5
- js 소스코드 저장소 관련
- push control 작동시 photoswipe 컨테이너 생성되는 오류 HOT 1
- loader > overlay 안됐던 이슈 관련
- 컴포넌트 닫기 data-dismiss="컴포넌트명" 관련 이슈 2 가지
- swiper 도규먼트에 대한 저의 의견
- 미처리 작업 정리 -- 금주 주말내 완료 목표 HOT 7
- 단위 js 파일 위치 변경
- 브랜드 변경 ( Ratchet plus --> kimsQ RC ) HOT 2
- Accordion(collapse) 적용 컴포넌트 추가 요청 HOT 2
- 모달 content 에 infinite-scroll 적용시 이슈
- Static Backdrop with Animation 관련 HOT 7
- material-design-style drawer 옵션화 요청 HOT 1
- [공지] modal,popup 닫기 데이타속성명 변경 HOT 1
- 검색시 autocomplete 기능구현을 위한 Bootstrap-3-Typeahead 커스텀 요청 HOT 1
- [개선] modal 에서 popup,sheet 호출할 경우에 대응한 component z-index 수정
- modal에서 popup을 호출할 경우, data-dismiss 문제
- page 컴포넌트 direction 옵션의 필요성에 대하여
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rc.