Behaviour parameters
Closing slider after saving
Parameter | Type | By default | Description |
---|---|---|---|
CLOSE_AFTER_SAVE | boolean | false | Standard behaviour, saves and closes slider after button is clicked. When error occurs when saving, slider won't close. Important: redirects when saving must return to the same page, not to a list. |
Grid update
Parameter | Type | By default | Description |
---|---|---|---|
RELOAD_GRID_AFTER_SAVE | boolean | false | Standard behaviour after slider updates and closes - update the grid from which the slider was called. Updates the first found grid on page, from which slider was opened. |
Page updating
Parameter | Type | By default | Description |
---|---|---|---|
RELOAD_PAGE_AFTER_SAVE | boolean | false | Similar to the previous case. When there is no grid, update the page updating and closing slider. |
showing notifications
Parameter | Type | By default | Description |
---|---|---|---|
NOTIFICATION | string | array | null | Shows notification after saving and closing slider. When detail page is opened not from the list, it's useful to display notification about successful saving.
$APPLICATION->IncludeComponent( 'bitrix:ui.sidepanel.wrapper', '', [ 'POPUP_COMPONENT_NAME' => 'bitrix:crm.button.edit', 'POPUP_COMPONENT_TEMPLATE_NAME' => '', 'POPUP_COMPONENT_PARAMS' => [], 'NOTIFICATION' => 'Успешно сохранено!', ] ); Parameter can pass the array |
Setting target="_top" in links
It's recommended to manually set target="_top"
in links.
Page opening only in slider
Parameter | Type | By default | Description |
---|---|---|---|
PAGE_MODE | boolean | true | By default page can open in both slider and a separate page (updating page, opened in slider).
When |
PAGE_MODE_OFF_BACK_URL | ' / ' | string |
Examples
// Page opens from grid. Configure closing after save and grid update: $APPLICATION->IncludeComponent( 'bitrix:ui.sidepanel.wrapper', '', [ 'POPUP_COMPONENT_NAME' => 'bitrix:crm.button.edit', 'POPUP_COMPONENT_TEMPLATE_NAME' => '', 'POPUP_COMPONENT_PARAMS' => [ 'PATH_TO_BUTTON_LIST' => $arResult['PATH_TO_BUTTON_LIST'], 'PATH_TO_BUTTON_EDIT' => $arResult['PATH_TO_BUTTON_EDIT'], 'PATH_TO_BUTTON_FILL' => $arResult['PATH_TO_BUTTON_FILL'], 'PATH_TO_USER_PROFILE' => $arResult['PATH_TO_USER_PROFILE'], 'ELEMENT_ID' => $arResult['VARIABLES']['id'] ] 'CLOSE_AFTER_SAVE' => true, 'RELOAD_GRID_AFTER_SAVE' => true, ] );
© «Bitrix24», 2001-2024