Skip to content

v13.27.0

Choose a tag to compare

@tomlyn tomlyn released this 20 May 21:39
42b9bdc

Minor Release v13.27.0

Common Canvas

#2513 Allow individual nodes to be resizable

Previously, Common Canvas could be configured to allow all nodes to be resizable or no nodes to be resizable by changing the boolean value for the config property enableResizableNodes.

In this release, nodes can individually switched to be resizable. To specify this, the application can return the following in the layoutHandler callback for the node in question:

	layoutHandler(node) {
		if (node.op === "prompt_node") {
			return {
				nodeResizable: true
			};
		}
		return {};
	}

An example of this can be seen in the Prompt sample application in the test harness.

Common Properties

#2535 Custom shouldFilterItem callback

A new optional callback handler has been added for Common Properties called filterItemsHandler().
It is used for filtering a dropdown list when shouldFilterItem is true. This function takes in the current input and an item and passes back whether or not the item should be filtered.

filterItemsHandler(data, list) {
	return list?.item?.label?.toLowerCase().startsWith(list?.inputValue?.toLowerCase());
}

Issues Resolved

Full Changelog: v13.26.0...v13.27.0