Last active
January 23, 2019 09:07
-
-
Save konratnox/33f992903c43c4ee689f3eb84a78f475 to your computer and use it in GitHub Desktop.
Для того, чтобы работала сортировка в поле нужно подключить скрипт Bitrix\Main\Page\Asset::getInstance()->addJs('/bitrix/js/main/dd.js');
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$arResult['html'] = \Bitrix\Main\UI\FileInput::createInstance([ | |
"name" => 'NEW_FILE', //[#IND#] - множественное поле ! индекс важен, так как в php шаблоне эта метка будет заменяться | |
"description" => false, | |
"upload" => true, | |
"allowUpload" => "I", | |
"medialib" => false, | |
"fileDialog" => true, | |
"cloud" => false, | |
"delete" => true, | |
"edit" => true, | |
//"allowSort" => "Y", | |
//"maxCount" => 10, | |
])->show($files); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment