[]
        
(Showing Draft Content)

Forguncy.Forguncy.Plugin.CellTypeHelper

类: CellTypeHelper

Forguncy.Plugin.CellTypeHelper

提供注册单元格类型函数的帮助类。

构造方法

constructor

new CellTypeHelper()

方法

registerCellType

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# 单元格类型类的NamespaceClassName以及AssemblyName
celltype Function 单元格类型的构造函数。

返回值

void