Browse Source

Add Data to StatusItem

tznind 2 năm trước cách đây
mục cha
commit
ab0fce6ce1
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      Terminal.Gui/Views/StatusBar.cs

+ 6 - 0
Terminal.Gui/Views/StatusBar.cs

@@ -55,6 +55,12 @@ namespace Terminal.Gui {
 		/// </summary>
 		/// <value>Action to invoke.</value>
 		public Action Action { get; }
+
+		/// <summary>
+		/// Gets or sets arbitrary data for the status item.
+		/// </summary>
+		/// <remarks>This property is not used internally.</remarks>
+		public object Data { get; set; }
 	};
 
 	/// <summary>