2.1.0 • Published 4 months ago

@schemater/bootstrap-color v2.1.0

Weekly downloads
1
License
-
Repository
-
Last release
4 months ago

Color input field for @schemater/core dependent on ngx-color-picker

Usage

  1. Import SchematerBootstrapColorModule to Your project
  2. Add InputColorComponent into Your SchematerCore.forRoot configuration to inputComponents. You can pick name as You want. Example: {name: 'color', component: InputColorComponent}
  3. You can add styles @import '@schemater/bootstrap-color/colorpicker.scss

Available options (in field.config)

  • getPresetColorsFromBootstrapVariables: boolean - tries to fetch colors from bootstrap variables. presetColors are ignored

  • presetColors: string[] - array of preset colors. Example: ['#fff', '#000', '#2889e9', '#e920e9', '#fff500', 'rgb(236,64,64)']

  • label: string - text to print inside colorpicker button
  • defaultColor: string - color (in hex) that will be applied if is null or undefined at init
2.1.0

4 months ago

2.0.0

1 year ago

1.0.1

3 years ago

1.0.0

3 years ago

0.9.0

4 years ago

0.6.2

4 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.2

6 years ago

0.0.1

6 years ago