ECM File Revisions

The ECM File Revisions view displays (in tabular form) revisions of an ECM file or document for the associated ID. Events can be fired from user actions on the list, such as clicking on a file to view its contents.

Configuration properties

Set or modify configuration properties for the view, such as appearance and behavior properties, in the Configuration properties tab.
Screen size
A configuration property that has the Screen Sizes icon The Screen Sizes icon beside the property name can have different values for each screen size. If you do not set a value, the screen size inherits the value of the next larger screen size as its default value.

The appearance configuration properties for the ECM File Revisions view are shown in the following table:

Table 1. Appearance configuration properties for ECM File Revisions
Appearance configuration property Description Data type
Table style The table style for this view. String
Color style The color style for this view. String
Width The width of the view. You can specify the width in px (pixels), % (percent), or em units. For example, 50px, 20%, or 0.4em. If a unit type is not specified, px is assumed. String
Height The height of the view in px (pixels) or em units. If no unit type is specified, px is assumed. String

The content management advanced configuration properties for the ECM File Revisions view are shown in the following table:

Table 2. Content management advanced properties for ECM File Revisions
Content management advanced property Description Data type
ECM server configuration name The ECM server to be used. String

Events

Set or modify the event handlers for the view in the Events properties. You can set events to be triggered programmatically or when a user interacts with the view. For information about how to define and code events, see User-defined events. The ECM File Revisions view has the following types of event handlers:
  • On load: Activated when the view loads. For example:
    console.log(me.getVersionCount())
  • On file clicked: Activated when a version of the file is clicked. For example:

    window.open(url, '_blank');

  • On refreshed: Activated when the view is refreshed. For example:

    console.log("List refreshed")

  • On refresh error: Activated when there is an error while the file is refreshing. For example:

    alert("There has been an error with the refresh")

Depending on the specific event, you can use JavaScript logic to modify the effects of the view. You can find more information about using events with views in User-defined events.

Methods

For detailed information on the available methods for ECM File Revisions, see the ECM File Revisions JavaScript API.

Additional resources

For information about how to create a coach or page, see Building coaches.
For information about standard properties (General, Configuration, Positioning, Visibility, and HTML Attributes), see View properties.
For information about other UI and content management views, see UI toolkit and Content Management toolkit.