You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
326 B
JavaScript
11 lines
326 B
JavaScript
4 years ago
|
export default async function createColorPicker($els) {
|
||
|
if (!$els || !$els.length) return;
|
||
|
|
||
|
await Promise.all([
|
||
|
import(/* webpackChunkName: "minicolors" */'@claviska/jquery-minicolors'),
|
||
|
import(/* webpackChunkName: "minicolors" */'@claviska/jquery-minicolors/jquery.minicolors.css'),
|
||
|
]);
|
||
|
|
||
|
$els.minicolors();
|
||
|
}
|