NG-ZORRO

repository·master·Indexed 11 days ago

https://github.com/NG-ZORRO/ng-zorro-antd

An enterprise-class UI component library for Angular applications based on the Ant Design design system. It provides over 70 high-quality components with TypeScript support, internationalization, and performance optimizations like Zoneless/OnPush.

Tokens
264K
Snippets
842
Records
1.5K
Agent score
88%

What's inside NG-ZORRO

  1. Overview of ng-zorro-antd features

    master

    ng-zorro-antd is an enterprise-class Angular UI component library based on Ant Design. Key features include:

    • 70+ high-quality components: Ready to use out of the box.
    • TypeScript support: Written in TypeScript with complete type definitions.
    • Performance: Supports both Zoneless and OnPush change detection modes.
    • Customization: Powerful theme customization capabilities.
    • Internationalization: Built-in support for dozens of languages.
    • Compatibility: Synchronized with Ant Design specifications and supports Server-side Rendering (SSR) and Electron.
  2. Overview of ng-zorro-antd features and compatibility

    master

    Key Features

    • Enterprise Design: Follows the Ant Design specification for enterprise-level mid-to-back-office products.
    • Angular Synchronized: High-quality components that upgrade in sync with Angular versions.
    • TypeScript Support: Built with TypeScript, providing full type definitions.
    • Performance: Supports both Zoneless and OnPush change detection modes.
    • Internationalization: Supports dozens of languages.
    • Customization: Deep theme customization capabilities.

    Compatibility

    • Angular Version: ng-zorro-antd shares the same major version as @angular/core. Currently supports Angular ^22.0.0.
    • Environment Support:
      • Modern browsers (Edge, Firefox, Chrome, Safari, Opera - last 2 versions).
      • Server-Side Rendering (SSR).
      • Electron.
  3. New features in NG-ZORRO v19.0.0

    master

    Version 19.0.0 introduced several new components and features:

    • cascader: Added support for multiple selection and custom nzPlacement for the dropdown overlay.
    • checkbox: Redesigned nz-checkbox-group to support custom layouts.
    • divider: Added nzVariant option.
    • float-button: New component introduced.
    • icon: New nz-icon selector available.
    • image: Added support for closing the preview using the Esc key.
    • input: New one-time password (OTP) component.
    • menu: Added nzTriggerSubMenuAction to allow clicking to trigger submenus.
    • qrcode: Added nzStatusRender for custom status rendering.
    • segmented: Redesigned segmented component.
    • space: New nz-space-compact component.
    • table: Added support for setting nzSortDirections in global configuration.
    • transfer: Added nzOneWay property for one-way styling.
  4. Use the nz-slider component

    master

    The nz-slider component allows users to input a value within a specified range. It supports single thumb mode for a single value and dual thumb mode (nzRange) for selecting a range of values. It can be oriented vertically and supports custom tick marks, step granularity, and tooltip formatting.

    <nz-slider [(ngModel)]="value"></nz-slider>
  5. Use the Transfer component

    master

    The nz-transfer component is a dual-column selection box used for moving items between a source (left) column and a target (right) column. It is ideal for multi-selection scenarios where you need to display more information about options than a standard Select or TreeSelect component allows.

    Key Concepts:

    • Source vs. Target: The left column is the source, and the right column is the target. The API uses these terms to manage data flow.
    • Data Movement: Users select one or more items and click direction arrows to move them between columns.
    • Data Management: The component maintains a single source of truth for the data internally.