Skip to content

finDashboardExt 扩展参考 ​

原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793881639/FIN+5.3.1+finDashboardExt 中文整理基于 FIN 5.3.1

导读: FIN 仪表板编辑器扩展

以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。


目录(导读) ​

  • mixins
  • classes
  • Slot Details
    • cur
    • feature
    • onCommit
    • onService
    • onStart
    • toGrid
    • finDashboardGenerateBinding
    • finDashboardWidgets
    • finDashboards
    • generateBinding

概述(中译) ​

@ExtMeta { name="finDashboard"; depends=["finstack"] } const class FinDashboardExt : Ext, Weblet

方法

插槽详情


API 正文(英文) ​

cur ​

static FinDashboardExt cur()


feature ​

FinDashboardFeature feature()


onCommit ​

Void onCommit()


onService ​

virtual override Void onService()


onStart ​

virtual override Void onStart()


FinDashboardFeature ​

const mixin FinDashboardFeature

Methods

toGrid

Slot Details ​


toGrid ​

abstract Grid toGrid(Obj? target := null, Context cx := Context.cur())


FinDashboardLib ​

const class FinDashboardLib : Obj

Methods

finDashboardGenerateBinding
finDashboardWidgets
finDashboards

Slot Details ​


finDashboardGenerateBinding ​

@Axon Str finDashboardGenerateBinding(Ref topTarget, Ref relTarget, Str type)


finDashboardWidgets ​

@Axon static Grid finDashboardWidgets()


finDashboards ​

@Axon static Grid finDashboards(Obj? target := null)


FinRelative ​

const class FinRelative : Obj

Methods

generateBindingThis is a function that generates the relative binding for a point based on where it is in a specified equip tree.

Slot Details ​


generateBinding ​

static Str generateBinding(Ref topTarget, Ref relTarget, Str type)

This is a function that generates the relative binding for a point based on where it is in a specified equip tree.

topTarget is the ID of the site/floor/equip that you want to relativize everything under. relTarget is the point/equip that you want to generate a binding for. type is the type of binding, options are "abs" (absolute by ID), "tag" (by tags).

Returns a string containing the relativized binding filter.

!!! This function has an extremely large Big O value of O(2^n) as it basically brute forces a filter that's unique. !!!