Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #108747

    I want to create a smart table in wich, pressing a button or defining a variable i can hide or show some columns.

    I saw the column menu example as well as the change columns example but I didn’t understand the trick.

    Could You provide an example ?

    Tks

    #108763
    Markov
    Keymaster

    Hi,

    Each column has a ‘visible’ property. If you want to hide it, you can use code like this: table.columns[0].visible = false;

    Regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

    #108769

    Tks

    it works also if I wrap an existing standard html table ?

     

    #108770
    Markov
    Keymaster

    Hi,

    In order to hide a column, the smart-table instance should be used i.e after smart-table is created either by creating a new table or wrapping an existing table, you can use the smart-table API.

    Regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.