Skip to content

How to activate canMove, canMoveTo for sorting drag & drop rows #103

Open
@Datastore24Kirill

Description

@Datastore24Kirill

Please tell me how to activate the ability to sort cells or sections in a table using TableKit

Do not work:

let row = TableRow<BudgetSettingsTableViewCell>(item: item)

let canMove = TableRowAction<BudgetSettingsTableViewCell>(.canMove)  { options in
                return true
}
            
        
let caneMoveTo = TableRowAction<BudgetSettingsTableViewCell>(.canMoveTo) { [weak self] (options) in
                
           print("MOVE")
 }
row.on(canMove)
row.on(caneMoveTo)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions