Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 모달
- 앵귤러 모달
- 아이오닉 스크롤 이벤트
- 검색
- 옵저버블
- Router
- 스크롤 이벤트 감지
- mysql if
- angular animation
- 스크롤 이벤트
- flex-1
- Ionic modal
- TAILWIND
- angular route
- ApexChart
- formgroup
- angular button
- Angular Router
- modal
- summary
- 호버
- route
- Oracle LISTAGG 사용 예시
- egov spring ajax 사용 예시
- prisma
- ajax 사용 예시
- angular modal
- 셀렉트박스 커스텀
- scroll
- 앵귤러 애니메이션
Archives
- Today
- Total
깜놀하는 해므찌로
Angular tailwind CSS button disable example / button disabled 본문
반응형
SMALL
<button
type="submit"
[disabled]="formGroup.invalid"
(click)="submit()"
[ngClass]="{'cursor-pointer bg-primary hover:bg-primary-300': formGroup.valid,
' cursor-not-allowed bg-gray-400' : formGroup.invalid}"
class="px-3 py-2 text-white rounded-md"
>등록</button
>
1. 앵귤러 제공 ngClass 디렉티브를 활용하여 조건에 따라 등록 버튼을 막을 수 있습니다.
반응형
LIST
'IT' 카테고리의 다른 글
Prisma Log Tx Transaction control 프리즈마 로그 트랜잭션 핸들링 예시 (0) | 2023.08.28 |
---|---|
Prisma include 작성자 사용자 정보 함께 조회 (0) | 2023.08.25 |
법정동 스키마 구조 예시 Prisma 시도/시군구 (0) | 2023.08.22 |
bash deploy 배포 방법 예시 (0) | 2023.08.21 |
Angular routerLinkActive menu handle / 앵귤러 라우터 메뉴 핸들 예시 (0) | 2023.08.20 |