antoniandre / splitpanes

A Vue 2 & 3 reliable, simple and touch-ready panes splitter / resizer.
https://antoniandre.github.io/splitpanes
MIT License
1.8k stars 163 forks source link

Disable drag #20

Open sbahr001 opened 5 years ago

sbahr001 commented 5 years ago

Is it possible to disable dragging or make some panes fixed?

I have a hack for a 3-panel layout(horizontal, 2 vertical) that makes the horizontal pane fixed:

 <splitpanes horizontal>
      <div splitpanes-default="5" splitpanes-min="5" splitpanes-max="5"></div>
      <splitpanes vertical @resize="resizeComponents()" splitpanes-default="100">
        <Component></Component> 
        <Component></Component>
      </splitpanes>
    </splitpanes>
  </div>
.splitpanes--horizontal > .splitpanes__splitter,
  .splitpanes--horizontal > .splitpanes__splitter {
    min-height:0px;
    max-height:0px;
  }
antoniandre commented 5 years ago

Hi @sbahr001, this is currently not possible, I will keep this feature in mind for the next versions.

MentalGear commented 3 years ago

Is this feature now available ? :)

zhangbaojia commented 2 years ago

I'm also looking forward for this feature!

ishaiavrahami commented 1 year ago

same

vitalii-bulyzhyn commented 1 year ago

Also looking for this feature

fredrikgangso commented 3 weeks ago

Also looking for this feature