From a16d634ffdf7029eea80583966359d38aa4c2d7c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 7 Nov 2016 22:51:41 +0100 Subject: Return widget ID in text widget tool function --- API.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'API.md') diff --git a/API.md b/API.md index f275f78..34b0bbe 100644 --- a/API.md +++ b/API.md @@ -413,7 +413,10 @@ The default values for the optional parameters result in a widget which fills nearly the entire entry page. #### Return value -A string which contains a complete formspec definition building the widget. +Two values are returned, in this order: + +* String: Contains a complete formspec definition building the widget. +* String: Formspec element ID of the created widget #### Note When you use this function to build a formspec string, do not use identifiers -- cgit v1.2.3