• Resolved koikawa

    (@koikawa)


    Hi Tobias,

    I’m using the hidden column code snippet in Custom Commands and it’s working great! I was wondering if I can have multiple code snippets in that Custom Commands window, as I’d like to remove sorting from certain columns.

    Thanks in advance!!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, that’s possible! If it’s different commands, just join them by a , (comma). If the same command has already been used, you’ll need to directly join the parts inside the JSON objects.

    In your case, you could extend

    "columnDefs": [ { "orderData": [ 1 ], "targets": [ 0 ] }, { "visible": false, "targets": [ 1 ] } ]
    

    to

    "columnDefs": [ { "orderData": [ 1 ], "targets": [ 0 ] }, { "visible": false, "targets": [ 1 ] }, { "orderable": false, "targets": [ 0, 1 ] } ]
    

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Can you have multiple entries in Custom Commands’ is closed to new replies.