Total Complexity | 2 |
Complexity/F | 2 |
Lines of Code | 20 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /** |
||
12 | import * as $ from 'jquery'; |
||
13 | import 'bootstrap-colorpicker'; |
||
14 | import 'bootstrap-colorpicker/dist/css/bootstrap-colorpicker.css'; |
||
15 | |||
16 | /** |
||
17 | * Class Color |
||
18 | * |
||
19 | * @author Teguh Rianto |
||
20 | * @package Components/Input |
||
21 | */ |
||
22 | export default class Color { |
||
23 | constructor() { |
||
24 | /** |
||
25 | * Initiate basic Color picker |
||
26 | */ |
||
27 | $('.color-picker').colorpicker({ |
||
28 | format: 'hex' |
||
29 | }); |
||
30 | } |
||
31 | } |