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 | 29 |
30 | 31 |
Tags
- angular modal
- mysql if
- Angular Router
- 앵귤러 모달
- 스크롤 이벤트
- egov spring ajax 사용 예시
- angular route
- prisma
- 검색
- TAILWIND
- Ionic modal
- Router
- ajax 사용 예시
- 셀렉트박스 커스텀
- 스크롤 이벤트 감지
- scroll
- angular button
- modal
- formgroup
- route
- 옵저버블
- 앵귤러 애니메이션
- flex-1
- 모달
- angular animation
- ApexChart
- 호버
- summary
- 아이오닉 스크롤 이벤트
- Oracle LISTAGG 사용 예시
Archives
- Today
- Total
깜놀하는 해므찌로
angular table 사용 예시 본문
반응형
SMALL
<div
class="w-full border border-gray-100 rounded-lg shadow-[0px_0px_12px_-1px_rgba(0,0,0,0.04)]"
>
<div class="text-xl font-bold p-5">주문 상태 로그</div>
<div class="px-5">
<table class="table-auto w-full border border-gray-200 rounded-lg">
<thead>
<th>상태</th>
<th>내용</th>
<th>일시</th>
</thead>
<tbody>
<tr *ngFor="let log of getCurrentPageLogs()">
<td>
<div
class=""
[ngClass]="setBadgeStyle(log.state)"
class="flex mx-auto rounded-sm justify-center px-2 py-1 max-w-max items-center font-normal text-white"
>
{{log.state}}
</div>
</td>
<td>{{log.content}}</td>
<td class="text-center">
{{log.registeredAt | date:'YYYY-MM-dd'}}
</td>
</tr>
</tbody>
</table>
</div>
<div class="flex justify-between items-center">
<details class="flex gap-2 border border-gray-200 rounded-md max-w-max">
<summary class="flex items-center justify-between pt-2.5 pl-3">
10
<app-icon name="material-symbols:keyboard-arrow-up" class="h-4 w-4" />
</summary>
<div
class="absolute bg-white border border-gray-200 rounded-md max-w-max"
>
<div
*ngFor="let item of pageAmounts"
class="px-2 py-0.5 cursor-pointer w-full h-[2.3125rem]"
>
<div
class="relative flex w-full bg-white text-gray-600 h-[2.3125rem] hover:bg-gray-100 items-center px-2 rounded-md"
>
{{item}}
</div>
</div>
</div>
</details>
<app-pagination
id="orderLogs"
(pageChange)="pageInfo.currentPage = $event"
[maxSize]="pageInfo.totalItems"
/>
</div>
반응형
LIST
'IT' 카테고리의 다른 글
angular modal dismiss 예시 (0) | 2023.06.18 |
---|---|
vsCode Prettier 저장 시 정렬하도록 셋팅하기 (0) | 2023.06.17 |
summary, details tag toggle marker delete (0) | 2023.06.16 |
input radio 디자인 커스텀 예시 / tailwind radio custom (0) | 2023.06.16 |
Ionic Angular 프로젝트 CSS Layout 최초 기본 셋팅 / ion-menu (0) | 2023.06.16 |