moding-il / bizdoc.core

Developer framework for designing organization forms
Other
2 stars 2 forks source link

Customizing Document List #16

Open zehavibarak opened 2 years ago

zehavibarak commented 2 years ago

BizDoc folders can be customized to show different columns and filters.

Custom columns

In bizdoc.config, edit the Folders section:

  "Folders": [
    {
      "Icon": "inbox",
      "Name": "ib",
      "Title": "Inbox",
      "ResourceType": "BizDoc.Core.Resources.Strings",
      "Columns": [
        {
          "Name": "stateId",
          "Title": "State",
          "ResourceType": "BizDoc.Core.Resources.Strings"
        }
      ]
    }, 
], 

Column can chosen from either a list of predefined columns, or a property of the documents. If no columns were specified, BizDoc will show default columns.

In the code above, each status can have a color and background color in the bizdoc.config States section.

Extending filters

Folder has a set of filtering options. You can extand these options by spacifing cube and cube axes that can be selected.

"Folders": [
  {
    "Icon": "drafts",
    "Filters": {
      "Axes": [
        "month",
        "quarter"
      ]
    },
    "Name": "df",
    "Title": "Drafts",
    "ResourceType": "BizDoc.Core.Resources.Strings"
  }, 
],