OPEN_GRID API - v1.6.1
    Preparing search index...

    Interface CFRule

    조건부 서식 규칙 하나. 함수를 담지 않는 데이터라 JSON 으로 저장했다가 그대로 되살릴 수 있다. grid.setConditionalFormat([규칙…]) 에 넘긴다.

    One conditional-formatting rule. It holds no functions, so it can be saved as JSON and restored as is. Pass it to grid.setConditionalFormat([rules…]).

    条件付き書式の規則 1 つ。関数を持たないデータなので JSON で保存してそのまま復元できます。grid.setConditionalFormat([規則…]) に渡します。

    一条条件格式规则。它不包含函数,可以保存为 JSON 后原样还原。传给 grid.setConditionalFormat([规则…])

    const rule: CFRule = {
    id: 'high-sales', when: { type: 'compare', op: '>', a: 100 }, encode: { kind: 'bar' },
    scope: { columnId: 'sales' }, priority: 1,
    };
    await grid.setConditionalFormat([rule]);
    interface CFRule {
        encode: CFEncodeSpec;
        id: string;
        priority: number;
        scope: CFScope;
        stopIfTrue?: boolean;
        style?: CFStyleRef | CFInlineStyle;
        v?: number;
        when: CFCondition;
    }
    Index

    Properties

    encode: CFEncodeSpec

    보여 주는 방식.

    How it is shown.

    見せ方。

    显示方式。

    id: string

    규칙 이름(겹치지 않게). 우선순위가 같을 때 순서를 정하는 데도 쓴다.

    The rule's id (unique). Also breaks ties between equal priorities.

    規則の名前(重ならないように)。優先度が同じときの順番決めにも使います。

    规则名称(不重复)。优先级相同时也用它决定顺序。

    priority: number

    우선순위. 작을수록 먼저 본다. 같으면 id 순.

    Priority; smaller is evaluated first. Ties go by id.

    優先度。小さいほど先に見ます。同じなら id の順。

    优先级。数值越小越先判断。相同则按 id 排序。

    scope: CFScope

    거는 범위.

    Where it applies.

    掛ける範囲。

    作用范围。

    stopIfTrue?: boolean

    true 면 이 규칙이 걸린 칸에는 뒤 규칙을 보지 않는다(엑셀의 「True 이면 중지」). 기본 false.

    When true, later rules are skipped for cells this rule matched (Excel's Stop If True). Default false.

    true ならこの規則が掛かったセルには後の規則を見ません(Excel の「条件を満たす場合は停止」)。既定 false

    true 时,本规则命中的单元格不再判断后面的规则(Excel 的「如果为真则停止」)。默认 false

    등록한 스타일 이름 또는 바로 적은 스타일.

    A registered style name or an inline style.

    登録したスタイル名、または直接書いたスタイル。

    已注册的样式名或直接写的样式。

    v?: number

    저장 형식 판 번호(옛 판을 읽을 때 쓴다).

    Saved-format version (used when reading older versions).

    保存形式の版番号(古い版を読むときに使います)。

    保存格式的版本号(读取旧版本时使用)。

    걸리는 조건.

    The condition.

    掛かる条件。

    触发条件。