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

Nested sortable support #204

Open
m-sadegh-sh opened this issue Dec 1, 2019 · 0 comments
Open

Nested sortable support #204

m-sadegh-sh opened this issue Dec 1, 2019 · 0 comments

Comments

@m-sadegh-sh
Copy link

It seems that there is some issues when nesting sortables. Is it supported?

<div data-bind="sortable: { data: editingEyeExamTemplateModel.template, options: { containment: '.headers-wrapper', handle: '.header-drag-handle', tolerance: 'pointer' } }" class="headers-wrapper"> <div class="header"> <div data-bind="style: { 'background-color': color }" class="header-lead"> <div class="title-wrapper"> <input data-bind="textInput: title" class="title" /> </div> <div class="header-drag-handle"></div> <div data-bind="dxCheckBox: { value: openByDefault, text: '@PageResources.OpenByDefault' }"></div> <button data-bind="click: $root.onOpenColorPicker" class="header-btn open-color-picker-btn"> <i data-bind="style: { 'color': color }" class="fa fa-paint-brush"></i> </button> <button data-bind="click: $root.onRemoveHeader, visible: $root.editingEyeExamTemplateModel.template().length > 1" class="header-btn remove-btn" style="display: none;"> <i class="fa fa-remove"></i> </button> </div> <div class="header-content"> <div data-bind="style: { 'border-color': color }" class="sub-header"> <div data-bind="sortable: { data: subHeaders, options: { containment: '.sub-header', tolerance: 'pointer' } }"> blah blah blah </div> <button data-bind="click: $root.onAddNewSubHeader" class="btn-new-sub-header"> @PageResources.AddNewSubHeader </button> </div> </div> </div> </div>

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