From 90b1d44597ff60a83d4606187b7e73c1f8de2f82 Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko <2277098+anoshenko@users.noreply.github.com> Date: Thu, 3 Jul 2025 11:28:14 +0300 Subject: [PATCH] Updated CHANGELOG.md --- CHANGELOG.md | 2 ++ popup.go | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29c1e64..d6e4166 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ * Added support of binding * Added "binding" argument to CreateViewFromResources, CreateViewFromText, and CreateViewFromObject functions +* Added CreatePopupFromResources, CreatePopupFromText, and CreatePopupFromObject functions +* Added implementation of Properties interface to Popup * Changed ParseDataText function return values # v0.19.0 diff --git a/popup.go b/popup.go index c7d4715..192d3f4 100644 --- a/popup.go +++ b/popup.go @@ -1296,7 +1296,7 @@ func NewPopup(view View, param Params) Popup { // CreatePopupFromObject create new Popup and initialize it by content of object. Parameters: // - session - the session to which the view will be attached (should not be nil); // - text - text describing Popup; -// - binding - object assigned to the Binding property (optional parameter). +// - binding - object assigned to the Binding property (may be nil). // // If the function fails, it returns nil and an error message is written to the log. func CreatePopupFromObject(session Session, object DataObject, binding any) Popup { @@ -1333,7 +1333,7 @@ func CreatePopupFromObject(session Session, object DataObject, binding any) Popu // CreatePopupFromText create new Popup and initialize it by content of text. Parameters: // - session - the session to which the view will be attached (should not be nil); // - text - text describing Popup; -// - binding - object assigned to the Binding property (optional parameter). +// - binding - object assigned to the Binding property (may be nil). // // If the function fails, it returns nil and an error message is written to the log. func CreatePopupFromText(session Session, text string, binding any) Popup { @@ -1350,7 +1350,7 @@ func CreatePopupFromText(session Session, text string, binding any) Popup { // the resource file from "popups" directory. Parameters: // - session - the session to which the view will be attached (should not be nil); // - text - file name in the "popups" folder of the application resources (it is not necessary to specify the .rui extension, it is added automatically); -// - binding - object assigned to the Binding property (optional parameter). +// - binding - object assigned to the Binding property (may be nil). // // If the function fails, it returns nil and an error message is written to the log. func CreatePopupFromResources(session Session, name string, binding any) Popup {