cg-select/example/indexTs.ts

37 lines
623 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',
2023-01-06 14:57:14 +03:00
{
id: '213sade',
title: 'Opel',
value: 1,
2023-01-06 14:57:14 +03:00
},
'Mersedes',
'MAN',
'max',
2023-01-06 14:57:14 +03:00
],
styles: {
head: {
width: '830px',
},
list: {
width: '824px',
},
placeholder: {
maxWidth: '500px ',
},
},
// url
// listDisplayMode: true,
// searchMode: true,
// nativeSelectMode: true
// event: 'mouseenter',
2023-01-12 16:23:49 +03:00
// buttonControl
2023-01-06 21:14:16 +03:00
multiselect: true,
2023-01-09 17:57:56 +03:00
multiselectTag: true,
2023-01-06 14:57:14 +03:00
});