Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author extendyourweb

    (@extendyourweb)

    Thanks.

    We will updating the plugin to edit the column width manually from the administration.

    To change the column width as the plugin is now:

    – In the table administration seeks the parameter “Texts” found at the end of the options on the table.

    – The parameter is for setting texts and language texts but you can add code to change the column width. The form looks like this:

    Parameter texts:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    "oLanguage": {
    "sLengthMenu": "_MENU_ Display records per page"
    "sZeroRecords": "Nothing found - sorry"
    "sInfo": "Showing _START_ to _END_ of _TOTAL_ records"
    "sInfoEmpty": "Showing 0 to 0 of 0 records"
    "sInfoFiltered": "(filtered from Total _MAX_ records)"
    }
    
    Parameters texts with column 1 and 2 changed the width:
    
    "oLanguage": {
    "sLengthMenu": "_MENU_ Display records per page"
    "sZeroRecords": "Nothing found - sorry"
    "sInfo": "Showing _START_ to _END_ of _TOTAL_ records"
    "sInfoEmpty": "Showing 0 to 0 of 0 records"
    "sInfoFiltered": "(filtered from Total _MAX_ records)"
    },
    "aoColumnDefs": [
    ?????? {"SWidth": "10%", "aTargets": [0]},
    {"SWidth": "10%", "aTargets": [1]}
    ???? ]

    You can see that by adding the code:

    "aoColumnDefs": [
    ?????? {"SWidth": "10%", "aTargets": [0]},
    {"SWidth": "10%", "aTargets": [1]}
    ???? ]

    change column 0 and 1 to a width of 10%.

    Thread Starter half_done

    (@half_done)

    Sorry, maybe I’m missing something. I copied and pasted the code you included here, and nothing changed. I tried different column numbers and different percentages, but the table looks exactly the same.

    Any update here?
    I had pasted the link code and nothing changed.

    Dears, you need to write sWidth instead of SWidth.

    It didn’t work with the lower case s

    I seem to be having the same issue with the code not working (tried the lower case “s” – any other advice anyone can offer?

    I want to do the same – the php doesn’t have a sWidth parameter but the table code has been hardcoded to width=100%

    therefore this needs to be overridden.. thoughts ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: ULTIMATE TABLES] Ultimate Tables column width’ is closed to new replies.