cg-select/example/indexTs.ts

19 lines
321 B
TypeScript
Raw Normal View History

2023-01-06 14:57:14 +03:00
import { CGSelect } from '../src/cg-selectTS';
2023-01-05 18:21:10 +03:00
2023-01-06 14:57:14 +03:00
const dropdn = new CGSelect({
selector: '.cg-dropdown_one',
placeholder: 'Выберите авто',
items: [
'BMW',
{
id: '213sade',
title: 'Opel',
value: 'ds',
},
'Mersedes',
'MAN',
'Ferari',
],
2023-01-06 21:14:16 +03:00
multiselect: true,
2023-01-06 14:57:14 +03:00
});