Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I open a tab in another row/col programmatically? #198

Open
nsjoo opened this issue Jun 21, 2021 · 0 comments
Open

How can I open a tab in another row/col programmatically? #198

nsjoo opened this issue Jun 21, 2021 · 0 comments

Comments

@nsjoo
Copy link

nsjoo commented Jun 21, 2021

I am using vue + electron.js. I want to add a new tab in gl-stack with javascript code.

I understand that tabs are added when increasing the items in the array in the dynamic stack, but the tabs appear to be opened only in the same group.

<gl-stack>
    <gl-component
      v-for="(stackPane, idx) in stackPanes"
      v-if="paneData.length > 0"
      :key="stackPane"
      :title="'dynamic'+stackPane"
      @destroy="removeStackPane(stackPane, idx)"
      @resize="onPaneResized(idx)"
    >
      <h1>Hi</h1>
      <button @click="addPane">add</button>
    </gl-component>
</gl-stack>

Result (addPane):

image

I want to create a tab with addPane (No mouse drag & drop) in the following layout:

image

Is it possible to open a tab as above programmatically? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant