commercetools-8.x-1.2-alpha1/modules/commercetools_decoupled/components/blocks/filters-block/filters-block.component.yml

modules/commercetools_decoupled/components/blocks/filters-block/filters-block.component.yml
$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json
name: commercetools filters block
status: experimental
group: commercetools
props:
  type: object
  properties:
    product_list_index:
      type: integer
      title: Product List Index
      description: The Product List Index to affect by.
    target_page:
      type: string
      title: Target page
      description: The internal path to redirect on action.

libraryOverrides:
  dependencies:
    - commercetools_decoupled/commercetools
    - commercetools_decoupled/placeholderify
    - core/drupal.message
  js:
    js/FiltersBlock.js: { attributes: { type: 'module', defer: true } }
    # We have to include here all dependencies of the components used in the
    # template to extract translation strings from them by Drupal.
    # @see https://medium.com/swissquote-engineering/drupal-8-react-i18n-and-typescript-c43aab12532d
    ../../../js/organisms/FiltersForm.js: { attributes: { type: module } }

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc