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

Not able to use dragAllowFrom or dragIgnoreFrom #73

Open
anubhavs19 opened this issue May 20, 2024 · 0 comments
Open

Not able to use dragAllowFrom or dragIgnoreFrom #73

anubhavs19 opened this issue May 20, 2024 · 0 comments

Comments

@anubhavs19
Copy link

anubhavs19 commented May 20, 2024

Summary:
I have successfully created the grids and everything works except for dragAllowFrom and dragIgnoreFrom, the selectors I am passing are child elements of root grid item, I hope that is not a problem

Code:

  <grid-layout
    v-model:layout="layout"
    :col-num="3"
    :row-height="height"
    :is-draggable="editMode"
    :is-resizable="editMode"
    @noc-item-move-end="handleMoveEnd"
  >
      <template
          #gridItemContent="slotProp"
      >
          <div class="grid-item-root">
              ...
              <span class="drag-handle">
              ICON
              </span>
              ...
              <span class="no-drag">
              ICON
              </span>
              ...
          </div>
      </template>
  </grid-layout>
    layout = [{
        x: 0, y: 5, w: 3, h: 2.5, id: 'MY_LIST', dragIgnoreFrom: '.no-drag', dragAllowFrom: '.drag-handle'
    }]
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