goldenlayout(ipygoldenlayout):如何以编程方式更改选项卡?

wn9m85ua  于 2021-09-08  发布在  Java
关注(0)|答案(0)|浏览(213)

我正试图找到一种在ipygoldenlayout中以编程方式更改选项卡的方法。我有什么办法可以做吗?

import ipyvuetify as v
from traitlets import Unicode
from ipygoldenlayout import GoldenLayout

gl = GoldenLayout()

class TestGL(v.VuetifyTemplate):
    template = Unicode("""
    <golden-layout style="height: 200px">
      <gl-row>
        <gl-component title="component1">
          <h1>Component 1</h1>
        </gl-component>
        <gl-stack>
          <gl-component title="component2">
            <h1>Component 2</h1>
          </gl-component>
          <gl-component title="component3">
            <h1>Component 3</h1>
          </gl-component>
        </gl-stack>
      </gl-row>
    </golden-layout>
    """).tag(sync=True)

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题