npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ng-list-antd

v0.0.1-beta.4

Published

A simplify list of antd.

Downloads

16

Readme

ng-list-antd

A simplify list of antd.

NPM version Build Status

Demo

Live Demo

Dependencies

  • ng-zorro-antd ^0.5.0

Usage & Installation

Install ng-list-antd from npm

npm install ng-list-antd --save

Import the NzListModule in to your root AppModule.

import { NzListModule } from 'ng-list-antd';
import { NgZorroAntdModule } from 'ng-zorro-antd';

@NgModule({
    imports: [BrowserModule, NzListModule, NgZorroAntdModule.forRoot()],
    declarations: [AppComponent],
    bootstrap: [AppComponent]
})
export class AppModule { }

Usage

import { Component, OnInit, ViewEncapsulation } from '@angular/core';

@Component({
  selector: 'demo-basic',
  template: `
    <nz-card>
        <ng-template #title>Basic list</ng-template>
        <ng-template #body>
            <nz-list [nzDataSource]="data" [nzItemLayout]="'horizontal'">
                <ng-template #nzTemplate let-item>
                    <nz-list-item>
                        <nz-list-item-meta
                            [nzTitle]="nzTitle"
                            nzAvatar="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"
                            nzDescription="Ant Design, a design language for background applications, is refined by Ant UED Team">
                            <ng-template #nzTitle>
                                <a href="https://ng.ant.design">{{item.title}}</a>
                            </ng-template>
                        </nz-list-item-meta>
                    </nz-list-item>
                </ng-template>
            </nz-list>
        </ng-template>
    </nz-card>
`
})
export class DemoBasicComponent {
  data = [
    {
      title: 'Ant Design Title 1'
    },
    {
      title: 'Ant Design Title 2'
    },
    {
      title: 'Ant Design Title 3'
    },
    {
      title: 'Ant Design Title 4'
    }
  ];
}

API

nz-list

| Name | Type | Default | Summary | | ------- | ------------- | ----- | ----- | | nzDataSource | any[] | | Data record array to be displayed | | nzBordered | boolean | false | Toggles rendering of the border around the list | | nzGrid | NzListGrid | | The grid type of list. You can set grid to something like { gutter: 16, span: 6 } | | nzItem | TemplateRef<any> | | List item renderer | | nzHeader | string, TemplateRef<any> | | List header renderer | | nzFooter | string, TemplateRef<any> | | List footer renderer | | nzSize | default,small,large | default | Size of list | | nzItemLayout | horizontal,vertical | horizontal | The layout of list, default is horizontal, If a vertical list is desired, set the itemLayout property to vertical | | nzLoading | boolean | | Shows a loading indicator while the contents of the list are being fetched | | nzLoadMore | TemplateRef<any> | | Shows a load more content | | nzPagination | TemplateRef<any> | | Shows a pagination content | | nzSplit | boolean | | Toggles rendering of the split under the list item |

NzListGrid

| Name | Type | Default | Summary | | ------- | ------------- | ----- | ----- | | span | number | | raster number of cells to occupy, 0 corresponds to display: none | | gutter | number | | spacing between grids | | xs | number | | <768px and also default setting, could be a span value or an object containing above props | | sm | number | | ≥768px, could be a span value or an object containing above props | | md | number | | ≥992px, could be a span value or an object containing above props | | lg | number | | ≥1200px, could be a span value or an object containing above props | | xl | number | | ≥1600px, could be a span value or an object containing above props | | xxl | number | | only supported antd 3.x |

nz-list-item

| Name | Type | Default | Summary | | ------- | ------------- | ----- | ----- | | nzContent | string, TemplateRef<any> | | Content renderer | | nzExtra | string, TemplateRef<any> | | The extra content of list item. If itemLayout is vertical, shows the content on right, otherwise shows content on the far right. |

nz-list-item-action

The actions content of list item. If itemLayout is vertical, shows the content on bottom, otherwise shows content on the far right.

nz-list-item-meta

| Name | Type | Default | Summary | | ------- | ------------- | ----- | ----- | | nzAvatar | string, TemplateRef<any> | | The avatar of list item | | nzDescription | string, TemplateRef<any> | | The description of list item | | nzTitle | string, TemplateRef<any> | | The title of list item |

Troubleshooting

Please follow this guidelines when reporting bugs and feature requests:

  1. Use GitHub Issues board to report bugs and feature requests (not our email address)
  2. Please always write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.

Thanks for understanding!

License

The MIT License (see the LICENSE file for the full text)