Git Product home page Git Product logo

vue-split-grid's People

Contributors

nino-vrijman avatar stijlbreuk-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vpsoft cosmini

vue-split-grid's Issues

gridData 'direction' conflict

SplitGridGutter.vue checks for

gridData.direction === 'vertical'

in multiple places, however, SplitGrid.vue's direction prop has a validator requiring it to be either 'row' or 'column':

    direction: {
      type: String,
      default: 'column',
      validator: val => ['column', 'row'].includes(val)
    },

I'm not sure which file needs fixing.
@Stijlbreuk what do you think?

Watch on configuration changes and re-render

First of all I would like to thank you for this plugin.

I'm using split grid for an application that needs to be responsive. To do this I'm listening to window resize events and together with some computed properties I'm setting the split-grid configuration as such:

<split-grid
      slot="content-body"
      class="row no-gutters"
      direction="column"
      :strict-mode="true"
      :column-min-sizes="{ 0: minSizeForFirstPane, 2: minSizeForSecondPane }"
      :column-snap-offset="calculateSnapOffsetBasedOnWindowWidth"
      @drag="onGridDrag"
    >

Where minSizeForFirstPane and minSizeForSecondPane are both computed based on a window size which is updated on window resize event (and can assure you that this works perfectly).

However, I have noticed that the split grid doesn't listen to those changes or propagates down the chain to it's children (split grid area or gutter).

I have tried using a :key attribute on the split grid component and this works well as it will update each time the key is changed, however, this is messing up with my 2nd pane which contains an iframe loaded by a 3rd party service which after update is being removed from DOM.

Would more watchers for other configuration settings than sizeUnit and sizeValue help re-render the component without using a key ?

Animation events

Is there any way to understand when does the animation end or starts? I need animationend event.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.