Skip to content

Add an internal kernel API /api/av/appendAttributeViewDetachedBlocksWithValues #11608

Closed
@88250

Description

@88250

创建行并插值。

https://ld246.com/article/1717014564274

示例如下:

image

参数:

{
  "avID": "20240118120204-kwyzf77",
  "blocksValues": [
    [
      {
        "keyID": "20240118120204-w6cggab",
        "block": {
          "content": "Test block"
        }
      },
      {
        "keyID": "20240118203822-io6ofxb",
        "text": {
          "content": "Test text"
        }
      },
      {
        "keyID": "20240531232156-ahsyx8l",
        "number": {
          "content": 1234
        }
      }
    ]
  ]
}
  • blocksValues 是个二维数组,对应表格视图的行列
  • 参数中的值可以参考源码 kernel/av/value.go 中的 Value 结构体

返回值:

{
    "code": 0,
    "msg": "",
    "data": null
}

Activity

self-assigned this
on May 31, 2024
added this to the 3.1.0 milestone on May 31, 2024
changed the title [-]Add an internal kenerl API `/api/av/addAttributeViewKeyValues`[/-] [+]Add an internal kenerl API `/api/av/addAttributeViewBlockWithValues`[/+] on May 31, 2024
changed the title [-]Add an internal kenerl API `/api/av/addAttributeViewBlockWithValues`[/-] [+]Add an internal kenerl API `/api/av/appendAttributeViewDetachedBlocksWithValues`[/+] on May 31, 2024
changed the title [-]Add an internal kenerl API `/api/av/appendAttributeViewDetachedBlocksWithValues`[/-] [+]Add an internal kernel API `/api/av/appendAttributeViewDetachedBlocksWithValues`[/+] on May 31, 2024
modified the milestones: 3.1.0, 3.0.17 on May 31, 2024
lovelife88

lovelife88 commented on Jun 4, 2024

@lovelife88

通过这个API可以在新建数据行批量设置属性值,能否提供API来批量修改某个数据行的属性? @88250

88250

88250 commented on Jun 4, 2024

@88250
MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@lovelife88

      Issue actions

        Add an internal kernel API `/api/av/appendAttributeViewDetachedBlocksWithValues` · Issue #11608 · siyuan-note/siyuan