From d2ab30e7a69bfe7efda63ae75812207377917bd3 Mon Sep 17 00:00:00 2001 From: miepzerino <o.skotnik@gmail.com> Date: Sun, 30 Mar 2025 18:50:27 +0000 Subject: [PATCH] Merge branch 'Flexalon-UI-Layouts' into develop --- Assets/Flexalon/Runtime/Cloner/FlexalonDataBinding.cs | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/Assets/Flexalon/Runtime/Cloner/FlexalonDataBinding.cs b/Assets/Flexalon/Runtime/Cloner/FlexalonDataBinding.cs new file mode 100644 index 0000000..207ab23 --- /dev/null +++ b/Assets/Flexalon/Runtime/Cloner/FlexalonDataBinding.cs @@ -0,0 +1,14 @@ +namespace Flexalon +{ + /// <summary> + /// When the Cloner creates objects from a DataSource, it will search the cloned objects + /// for any component which implements DataBinding to bind the data entry from the + /// data source to the visual item. The component can then use this data to change its appearance. + /// </summary> + public interface DataBinding + { + /// <summary> Called when the data is set for this item. </summary> + /// <param name="data"> The data to bind to the item. </param> + void SetData(object data); + } +} \ No newline at end of file -- Gitblit v1.9.3