]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: introduce details card component
authorNizamudeen A <nia@redhat.com>
Wed, 23 Jul 2025 05:24:51 +0000 (10:54 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 29 Jul 2025 04:56:24 +0000 (10:26 +0530)
commit7cf2b5fd22de142d8175c4cc4399ab080bf03722
treed4a1f00a09e430b29de435cd6005fd2b77e57398
parentb352f5626b54ee3c8ec2323c7bfd93bcace5d89b
mgr/dashboard: introduce details card component

as per https://pages.github.ibm.com/ibmcloud/pal/storybook/?path=/story/components-card--details-with-stacked-rows

added a details component which can be used as

```
<cd-details-card title="card title">
  <ng-container class="details-body-content">
   <div cdsCol [columnNumbers]="{lg: 4}">
     <span class="cds--label">
       label
     </span>
     <span>value</span>
   </div
  </ng-container>
</cd-details-card>
```

Fixes: https://tracker.ceph.com/issues/72246
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/components/components.module.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/details-card/details-card.component.html [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/details-card/details-card.component.scss [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/details-card/details-card.component.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/details-card/details-card.component.ts [new file with mode: 0644]