JavaScript Dialog Fields module

Edition

Incubator (services)

Issues

Git

Git

Latest

1.1.6

Compatible with Magnolia 6.2.

This module allows you to create custom form fields with JavaScript.

This module is at the INCUBATOR level.

Installing with Maven

Maven is the easiest way to install the module. Add the following to your bundle:

<dependency>
  <groupId>info.magnolia.ui</groupId>
  <artifactId>magnolia-ui-framework-javascript</artifactId>
  <version>1.1.6</version>
</dependency>

Configuration

Add a JavaScript field in your dialog definition as follows:

label: Home page
form:
  implementationClass: info.magnolia.ui.javascript.form.FormViewWithChangeListener
  properties:
    colorField:
      label: Background color
      $type: javascriptField (1)
      fieldScript: /my-light-module/webresources/colorField/index.html (2)
      height: 70 (3)
      defaultValue: "#00ff00" (4)
      parameters: (5)
        foo: bar
1 Must be javascriptField.
2 Points to a valid HTML file located in any module (Maven & Light modules).
3 The height of the field in the dialog.
4 The field default value.
5 Pass custom parameters to the Javascript field.
Don’t forget to set your defaultBaseUrl in the /server@defaultBaseUrl configuration.

Changelog

Version Notes

1.1.6

1.1.5

1.1.4

Support for Magnolia 6.2.12

1.1.3

Add support in content apps

1.1.1

Bug fixes

1.1

Add the message action

  • Add the error notification

1.0

Initial release.

Feedback