From 670ac2605c0ccbc47488bbf561bfeba0df9187a1 Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Fri, 11 Nov 2022 12:08:23 +0100 Subject: [PATCH] H5P-3599 Allow to retrieve configuration of list widget --- scripts/h5peditor-list.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/h5peditor-list.js b/scripts/h5peditor-list.js index ffa2b11e..05ad9e1f 100644 --- a/scripts/h5peditor-list.js +++ b/scripts/h5peditor-list.js @@ -330,6 +330,15 @@ H5PEditor.List = (function ($) { return $.extend(true, {}, field.field); }; + /** + * Get copy of list's field semantics holding its configuration. + * + * @returns {Object} + */ + self.getConfig = function () { + return $.extend(true, {}, field); + }; + // Start the party! init(); }