PHP code example of proklung / js-extensions
1. Go to this page and download the library: Download proklung/js-extensions library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
proklung / js-extensions example snippets \Bitrix\Main\UI\Extension::load('namespace.extension')
$APPLICATION->IncludeComponent('proklung:extension.run',
'',
[
'EXTENSION' => 'proklung.bxui', // JS extension
'SELECTOR' => 'uix' // ID
],
false
);
$APPLICATION->IncludeComponent('proklung:extension.run',
'',
[
'EXTENSION' => 'proklung.webpacked',
'NO_TEMPLATE' => true
],
false
);
$APPLICATION->IncludeComponent('proklung:app',
'',
[],
false
);
$APPLICATION->IncludeComponent('proklung:extension.run',
'',
[
'EXTENSION' => 'proklung.vueinvoker',
'NO_TEMPLATE' => true
],
false
);
$APPLICATION->IncludeComponent('proklung:ui_select',
'bitrix24',
[
'SELECT_ID' => 'cities',
'DISABLED' => true,
'VALUES' => (array)$data["ALL_CITIES_LIST"],
'SELECTED_VALUE' => 'Москва',
'MULTIPLE' => false,
'PLACEHOLDER' => 'Города'
],
false
);
https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43&LESSON_ID=11981