4.0.0-A.2-9950 • Published 1 year ago

@alfresco/aca-settings v4.0.0-A.2-9950

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Title: Settings

Settings

The application settings can be accessed via the /settings route.

You can project custom configuration groups via the settings section:

{
  "settings": [
    {
      "id": "extensions.ps.settings",
      "name": "Extensions: Process Services",
      "parameters": [
        {
          "name": "Enable Process Services Extensions",
          "key": "processServices",
          "type": "boolean",
          "value": false
        }
      ]
    }
  ]
}

At runtime, you are going to get an extra group called "Extensions: Process Services" with a custom boolean setting "Enable Process Services Extensions".

Custom settings group

Parameters

Each setting parameter object supports the following properties:

PropertyDescription
id(optional) Unique identifier
namePublic name, can be translation key
keyThe key to use when saving to the storage
typeThe type of the value (boolean / string)
value(optional) Default value to use for the setting

Installing

Import the module into the application:

// src/app/extensions.module.ts

import { AcaSettingsModule } from '@alfresco/aca-settings';

@NgModule({
  imports: [
    // other modules
    AcaSettingsModule
  ]
})
export class AppExtensionsModule {}

Update the app.extensions.json extension configuration to enable extra routes and components:

{
  "actions": [
    {
      "id": "app.actions.settings",
      "type": "NAVIGATE_URL",
      "payload": "/settings"
    }
  ],

  "routes": [
    {
      "id": "app.settings",
      "path": "settings",
      "layout": "blank",
      "component": "app.settings.component"
    }
  ],

  "features": {
    "header": [
      {
        "id": "app.header.more",
        "children": [
          {
            "id": "app.header.settings",
            "order": 110,
            "title": "APP.SETTINGS.TITLE",
            "description": "APP.SETTINGS.TITLE",
            "icon": "info",
            "actions": {
              "click": "app.actions.settings"
            }
          }
        ]
      }
    ]
  }
}

Alternatively, you can use the assets/settings.plugin.json file.

Compile and distribute/run the application.

4.0.0-A.2-10190

1 year ago

4.0.0-A.2-10116

1 year ago

4.0.0-A.2-10006

1 year ago

4.0.0-A.2-10009

1 year ago

4.0.0-A.2-10175

1 year ago

4.0.0-A.2-10021

1 year ago

4.0.0-A.2-10162

1 year ago

4.0.0-A.2-10085

1 year ago

4.0.0-A.2-10150

1 year ago

4.0.0-A.2-10188

1 year ago

4.0.0-A.2-10133

1 year ago

4.0.0-A.2-10122

1 year ago

4.0.0-A.2-10012

1 year ago

4.0.0-A.2-10003

1 year ago

4.0.0-A.2-9995

1 year ago

4.0.0-A.2-9984

1 year ago

4.0.0-A.2-9973

1 year ago

4.0.0-A.2-9967

1 year ago

4.0.0-A.2-9960

1 year ago

4.0.0-A.2-9956

1 year ago

4.0.0-A.2-9950

1 year ago