Untitled
unknown
php
5 months ago
1.0 kB
65
Indexable
Never
<?php require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"); \Bitrix\Main\UI\Extension::load("ui"); \Bitrix\Main\UI\Extension::load("ui.select"); ?> <input type="text" id="select"> <script> BX.ready(() => { const options = [ { value: '1', label: 'the Union of Soviet Socialist Republics' }, { value: '2', label: 'Deutch' }, { value: '3', label: 'England' }, ] const select = new BX.Ui.Select({ options, value: '12', isSearchable: true, containerClassname: '', }); select.subscribe('update', (e) => { // some code here }); select.renderTo(document.getElementById('select')); }); </script> <?php # Получаю ошибку: Uncaught TypeError: Cannot read properties of undefined (reading 'Select')
Leave a Comment