name: zab/cards-scroller
title: "Cards Scroller"
description: "Block with cards that appear on the scroll"
group: Content Elements
priority: -3
prefixFields: true
prefixType: full
fields:
  - identifier: Zab/GeneralRow
    type: Basic

  - identifier: tab_content
    type: Tab
    label: "Content"
  - identifier: row_2
    type: Palette
    fields:
      - identifier: title
        type: TextInput
        label: "Title"
      - identifier: opt_sticky
        type: Checkbox
        label: "Sticky Headline"
        renderType: checkboxToggle
  - identifier: text
    type: Textarea
    label: "Text"
    enableRichtext: true

  - identifier: tab_cards
    type: Tab
    label: "Cards"
  - identifier: cards
    type: Collection
    label: "Cards"
    minitems: 0
    maxitems: 6
    appearance:
      levelLinksPosition: bottom
    fields:
      - identifier: opt_color
        label: "Card Color"
        type: Select
        renderType: selectSingle
        itemsProcFunc: 'Zab\ZabSite\Utility\ContentOptions->getColors'
      - identifier: info
        type: Textarea
        enableRichtext: true
