1.1.0 • Published 6 months ago

ng-antd-color-picker v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

NgAntdColorPicker

Introduction

The angular version of the color-picker component based on antd styles.

Angular version >= 17 npm package

Installation

npm install ng-antd-color-picker

Usage

standalone:
import { NgAntdColorPickerComponent, NgAntdColorBlockComponent } from 'ng-antd-color-picker';
module:
import { NgAntdColorPickerModule } from 'ng-antd-color-picker';

<ng-antd-color-picker></ng-antd-color-picker>

<ng-antd-color-block color="#ff6600"></ng-antd-color-block>
  • Basic

  • Custom Header / Footer

  • Color Block

API

ng-antd-color-picker

ParameterDescriptionTypeDefault
[value]Value of colorstringColorValue-
[defaultValue]Default value of colorstringColorValue-
[disabled]Disable ColorPickerbooleanfalse
[disabledAlpha]Disable Transparencybooleanfalse
[panelRenderHeader]Set the header of the color pickerTemplateRef<void>-
[panelRenderFooter]Set the tail of the color pickerTemplateRef<void>-
(nzOnChange)Callback when value is changedEventEmitter<{ color: Color; type?: HsbaColorType }>-
(nzOnChangeComplete)Called when clearEventEmitter<HsbaColorType>-

ng-antd-color-block

ParameterDescriptionTypeDefault
[color]Module colorsstring#1677ff
[nzOnClick]Callbacks for clicking on color blocksEventEmitter<boolean>-
1.1.0

6 months ago

1.0.0

6 months ago

0.0.2

7 months ago

0.0.1

9 months ago

0.0.1-beta3

9 months ago

0.0.1-beta2

9 months ago

0.0.1-beta1

9 months ago

0.0.1-beta

9 months ago