A
A
Alexander2022-01-15 16:33:16
1C-Bitrix
Alexander, 2022-01-15 16:33:16

What is the difference between \Bitrix\Main\UI\Extension::load and \CJSCore::Init?

Why are some libraries (like ui.vue) loaded by both methods, and some (like popup) only via \CJSCore::Init

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2022-01-17
Madzhugin @Suntechnic

For popup call \Bitrix\Main\UI\Extension::load("main.popup");
For " Extensions ":
Look at the folder /bitrix/js/folder_name/lib_name/
Connect \Bitrix\Main\UI\Extension::load("folder_name.lib_name");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question