Skip to content

Instantly share code, notes, and snippets.

@konratnox
Last active January 23, 2019 09:07
Show Gist options
  • Save konratnox/33f992903c43c4ee689f3eb84a78f475 to your computer and use it in GitHub Desktop.
Save konratnox/33f992903c43c4ee689f3eb84a78f475 to your computer and use it in GitHub Desktop.
Для того, чтобы работала сортировка в поле нужно подключить скрипт Bitrix\Main\Page\Asset::getInstance()->addJs('/bitrix/js/main/dd.js');
$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