반응형
material UI에서는 disabled 속성을 주면 됨
- <Button disabled>
- <Checkbox disabled>
- <Switch disabled>
- <Slider diabled>
- ...
div를 포함한 하위 component를 모두 막고 싶은 경우
- </div style={this.props.disable?{color:'#777777', pointerevents: 'none'}:{}}>
반응형
'js' 카테고리의 다른 글
js array 중복제거 (0) | 2022.08.08 |
---|---|
moment (0) | 2022.07.25 |
axios(설치필요,더많은기능지원) vs fetch(브라우저 기본내장) (0) | 2022.07.07 |
JS 모듈시스템: CommonJS, AMD(RequireJS), ES6 (0) | 2022.06.23 |
크롬 Inspector > Network > Preview,Response json확인하려면 res.json()실행되어야 함 (완전 몰랐던 사실) (0) | 2022.06.14 |