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

Split panel component #1725

Closed
m0ksem opened this issue May 4, 2022 · 4 comments
Closed

Split panel component #1725

m0ksem opened this issue May 4, 2022 · 4 comments
Assignees
Labels
component Is a new component or part of existing one design Requires design epic Feature that is too big to fit in one issue feature Something useful to end user
Milestone

Comments

@m0ksem
Copy link
Collaborator

m0ksem commented May 4, 2022

Live examples:

References:

Splitter tag variants:

  • va-split,
  • va-splitter,
  • va-split-panes,
  • va-split-panels.

Splitter props:

  • resizable: boolean - may be disabled instead. Prohibits splitter panes size change.
  • direction: 'horizontal' | 'vertical' - may be isHorizontal boolean instead.
  • gutterSize: number - in px. Width/height of the element, that triggers resizing.
  • limits: [number, number] - in px, default min/max size value for all panes. Max value ignored, if max width/height of the all panes < splitter width/height.
  • paneSize: number - default width/height of each pane in percents (100 / panes amount).
  • maximizeWithDblClick: boolean - maximize next pane width via gutter double click.
  • leftPaneMaximization: boolean - flag to maximize previous pane width/height instead of next.

Splitter emits:

  • update:modelValue: number[] - payload contains all panes width in px.

Splitter slots

  • before (left, start).
  • after (right, end).
  • gutter (to overwrite VaDivider as a default).

Usage example:

<va-splitter direction="horizontal">
   <template #before="{ size }">
      Left
   </template>
   <template #after="{ size }">
      Right
   </template>
</va-split-panel>
@m0ksem m0ksem added feature Something useful to end user review required component Is a new component or part of existing one labels May 4, 2022
@m0ksem
Copy link
Collaborator Author

m0ksem commented May 5, 2022

Can be part of #1430

@asvae
Copy link
Member

asvae commented May 5, 2022

@asvae asvae added research Requires research and removed review required labels May 5, 2022
@asvae asvae added this to the next milestone May 5, 2022
@asvae asvae added the epic Feature that is too big to fit in one issue label May 19, 2022
@aluarius aluarius added design Requires design and removed research Requires research labels May 20, 2022
@xx13
Copy link

xx13 commented May 24, 2022

added to my to-do list ✅

@asvae asvae modified the milestones: next, 1.5.0 May 26, 2022
aluarius added a commit to aluarius/vuestic-ui that referenced this issue Jul 10, 2022
aluarius added a commit to aluarius/vuestic-ui that referenced this issue Jul 10, 2022
@aluarius
Copy link
Contributor

aluarius commented Aug 9, 2022

Closed via #2068

@aluarius aluarius closed this as completed Aug 9, 2022
@m0ksem m0ksem mentioned this issue Oct 21, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component Is a new component or part of existing one design Requires design epic Feature that is too big to fit in one issue feature Something useful to end user
Projects
None yet
Development

No branches or pull requests

5 participants