[]
Forguncy.Plugin.CellTypeHelper
提供注册单元格类型函数的帮助类。
• new CellTypeHelper()
▸ Static
registerCellType(identifier
, celltype
): void
注册一个单元格类型,将javascript
单元格类型类与C#
单元格类型类关联起来。
Example
Forguncy.CellTypeHelper.registerCellType("Namespace.ClassName, AssemblyName", customCellType);
// 图片轮转插件需要注册如下:
Forguncy.CellTypeHelper.registerCellType("CarouselCellType.Carousel, CarouselCellType", CarouselCellType);
属性名 | 类型 | 说明 |
---|---|---|
identifier |
string |
单元格类型的唯一标识符。标识符格式为: Namespace.ClassName, AssemblyName ,是 C# 单元格类型类的Namespace ,ClassName 以及AssemblyName 。 |
celltype |
Function |
单元格类型的构造函数。 |
void