Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
ColumnHeaderMenu.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
5
7{
12 {
13 private readonly Func<string> mGetCaption;
14 private readonly Action<IReadOnlyList<ICellAccessor>> mMenuAction;
15
16 public ColumnHeaderMenu(Func<string> getCaption, Action<IReadOnlyList<ICellAccessor>> menuAction)
17 {
18 mGetCaption = getCaption;
19 mMenuAction = menuAction;
20 }
21
22 public string Caption => mGetCaption();
23 public void ProcessSelected(IReadOnlyList<ICellAccessor> affectedCells) => mMenuAction(affectedCells);
24 }
25}
Classes and interfaces that are meant for plugins. The classes and interfaces below this namespace ar...
Interfaces for custom sample list column type definitions. These interfaces allow you to define new c...
Definition ColumnMenu.cs:4
The classes in this namespace demonstrate how to define your own sample list column types.
Provides a menu item title and the respective functionality.
Definition ColumnMenu.cs:12
Just a general purpose column header menu.
string Caption
Text for the menu entry in the column header menu.
ColumnHeaderMenu(Func< string > getCaption, Action< IReadOnlyList< ICellAccessor > > menuAction)
readonly Action< IReadOnlyList< ICellAccessor > > mMenuAction
void ProcessSelected(IReadOnlyList< ICellAccessor > affectedCells)
All cells that were selected while picking the menu entry / all cells of the column if there was no s...