Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anyt/2a33d29cb6eed09b515f75bd9dd5188b to your computer and use it in GitHub Desktop.
Save anyt/2a33d29cb6eed09b515f75bd9dd5188b to your computer and use it in GitHub Desktop.
Move OroCommerce storefront datagrid filters to the left sidebar
layout:
actions:
- '@move':
id: product_datagrid_cell__product_add_to_cart_button_wrapper
parentId: product_datagrid_row_product_line_item_form_buttons
prepend: true
- '@move':
id: product_datagrid_toolbar_filter_container
parentId: page_sidebar
- '@move':
id: product_datagrid_toolbar_sorting
parentId: page_sidebar
prepend: true
- '@add':
id: product_datagrid_sidebar_header
parentId: page_sidebar
blockType: block
prepend: true
- '@setOption':
id: product_datagrid
optionName: grid_render_parameters
optionValue:
cssClass: '=data["system_config_provider"].getValue("oro_customer.enable_responsive_grids") ? "frontend-datagrid frontend-datagrid--responsive" : "frontend-datagrid"'
enableFloatingHeaderPlugin: false
enableToggleFilters: false
enableViews: false
actions: []
responsiveGrids:
enable: '=data["system_config_provider"].getValue("oro_customer.enable_responsive_grids")'
viewport:
minScreenType: 'tablet'
swipeActionsGrid:
enable: '=data["system_config_provider"].getValue("oro_customer.enable_swipe_actions_grids")'
viewport:
maxScreenType: 'tablet'
themeOptions:
actionsDropdown: 'auto'
actionOptions:
refreshAction:
launcherOptions:
className: 'btn btn--default btn--size-s refresh-action'
icon: 'undo fa--no-offset'
iconHideText: true
resetAction:
launcherOptions:
className: 'btn btn--default btn--size-s reset-action'
icon: 'refresh fa--no-offset'
iconHideText: true
customModules:
datagridSettingsComponent: 'orofrontend/js/app/views/datagrid-settings/frontend-datagrid-settings-view'
toolbarOptions:
actionsPanel:
className: 'btn-group not-expand frontend-datagrid__panel'
itemsCounter:
className: 'datagrid-tool'
hideItemsCounter: false
filterContainerSelector: ' .page-sidebar > [data-role="filter-container"]'
- '@remove':
id: product_mass_actions_container
- '@remove':
id: product_datagrid_toolbar_actions
- '@remove':
id: product_item_select_row
- '@remove':
id: product_datagrid_row_product_shopping_lists
- '@move':
id: product_datagrid_row_product_title
parentId: product_datagrid_row_product_primary_content_container
prepend: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment