Skip to content

Instantly share code, notes, and snippets.

@iboved
Created March 27, 2018 17:17
Show Gist options
  • Save iboved/e2df0fe777d6afad41203db1f968cc33 to your computer and use it in GitHub Desktop.
Save iboved/e2df0fe777d6afad41203db1f968cc33 to your computer and use it in GitHub Desktop.
# ===================================
# List Behavior Config
# ===================================
# Model List Column configuration
list: $/acme/demo/models/category/columns.yaml
# Model Class name
modelClass: Acme\Demo\Models\Category
# List Title
title: acme.demo::lang.categories.model.title
# Custom JavaScript code to execute when clicking on a record
recordOnClick: "$.popup({ handler: 'onUpdateForm', extraData: { record_id: ':id' } })"
# Message to display if the list is empty
noRecordsMessage: backend::lang.list.no_records
# Records to display per page
recordsPerPage: 20
# Display page numbers with pagination, disable to improve performance
showPageNumbers: true
# Displays the list column set up button
showSetup: true
# Displays the sorting link on each column
showSorting: true
# Default sorting column
# defaultSort:
# column: created_at
# direction: desc
# Display checkboxes next to each record
showCheckboxes: true
# Displays a tree hierarchy for parent/child records
showTree: true
# If tree nodes should be expanded by default
treeExpanded: true
# Toolbar widget configuration
toolbar:
# Partial for toolbar buttons
buttons: list_toolbar
# Search widget configuration
search:
prompt: backend::lang.list.search_prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment