Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 779 Bytes

README.md

File metadata and controls

54 lines (33 loc) · 779 Bytes

elzar

jQuery-inspired JavaScript tools for Alfresco

Installation

Copy elzar.js to "/Company Home/Data Dictionary/Scripts"

Usage

Add

<import resource="/Company Home/Data Dictionary/Scripts/elzar.js">

as the first line of your script.

Documentation

NodeRef selector

var node = $("workspace://SpacesStore/683a7581-b138-47be-a367-cceddb5d6bf8");

Search query selector

var results = $("name:test")

dir

$.dir(object);

Prints all properties of the object.

bean

var nodeService = $.bean("NodeService");

Returns the Spring bean with the given name.

Other

  • console.log: Alias for logger.log
  • JSON.stringify: Alias for jsonUtils.toJSONString