Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

365
Views
customize content collapse ng-zorro-antd

I want customize contents collapse but i can not just content 1 in collapse 1 and content 2 in collapse 2 and want create collapse and set contents with below example. and project is angular 12. and can not find the answer in document

example

and how I can implement item 2 (collapse 2) event click edit and delete?

collapse.component.ts

 panels = [ 
    {
    active: true,
    name: "item 1 (collapse 1) ",
    contents: [
    {
    key: "nameFile", //i like this content just in  collapse 1
    value: "list.jpg" //i like this content just in collapse 1
    },
    {
    key: "type", //i like this content just in collapse 1
    value: "jpg" //i like this content just in collapse 1
    },
    {
    key: "size",//i like this content just in collapse 1
    value: "3mb"//i like this content just in collapse 1
    }
    ],
    disabled: false
    },
    {
    active: true,
    name: "item 2 (collapse 2)",
    contents: "i like this content  just in collapse2 "
    disabled: false
    }
    ];

collapse.component.html

 <nz-collapse class="drawerProperty">
    
      <nz-collapse-panel
    
    *ngFor = "let panel of panels"
    
    [nzHeader] = "panel.name"
    
    [nzActive] = "panel.active"
    
    [nzDisabled] = "panel.disabled"
    >
    
      <div *ngFor = "let value of panels">
    
         <div *ngFor = "let data of value.contents">
    
           <b> {{data.key}} </b>
    
           <br/>
    
             {{data.value}} 
    
         </div> 
    
      </div>
    
    </nz-collapse-panel>
    
    </nz-collapse>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!