mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-07-01 08:23:42 -04:00
[Framework + Core] Feature: Add support for adding multiple grid items (#105)
For plugin developers: Adds a new method to the IObservatoryCore interface to add multiple grid items in 1 call -- which only invokes the UI thread once (and potentially only scrolls to bottom once) providing a small performance improvement and providing some modest convenience.
This commit is contained in:
@ -156,6 +156,13 @@ namespace Observatory.Framework.Interfaces
|
||||
/// <param name="item">Grid item to be added. Object type should match original template item used to create the grid.</param>
|
||||
public void AddGridItem(IObservatoryWorker worker, object item);
|
||||
|
||||
/// <summary>
|
||||
/// Add multiple items to the bottom of the basic UI grid.
|
||||
/// </summary>
|
||||
/// <param name="worker">Reference to the calling plugin's worker interface.</param>
|
||||
/// <param name="items">Grid items to be added. Object types should match original template item used to create the grid.</param>
|
||||
public void AddGridItems(IObservatoryWorker worker, IEnumerable<object> items);
|
||||
|
||||
/// <summary>
|
||||
/// Clears basic UI grid, removing all items.
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user