Menu

Colspan and Rowspan

Anonymous
2014-01-15
2014-01-16
  • Anonymous

    Anonymous - 2014-01-15

    Hi,

    How would you do a Colspan and Rowspan for a TD element in HTML++?

    Regards,

    Lance Moliatu
    Applications Analyst
    Boeing Aerostructures Australia
    PH: 03 9647 3839
    Mobile: 0466 190 088

    "NOTICE: This communication may contain privileged or other confidential information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received."

     
  • Psion Ski

    Psion Ski - 2014-01-15

    Hello,

    The rowspan and colspan attributes are indeed missing, thank you for pointing it out! I will add them as soon as possible.

    Ticket URL: https://sourceforge.net/p/htmlplusplus/tickets/10/

     
  • Psion Ski

    Psion Ski - 2014-01-16

    Hello,

    The attributes have been added.

    Example usage:

    var table = new Table {
        new Tr { new Td(rowspan: 2), new Td(), new Td() },
        new Tr { new Td(colspan: 2) }
    };
    

    The rowspan and colspan are optional constructor parameters typed as ints. You can also add them to an existing td element like this:

    var td = new Td();
    td.Add(new HTMLPlusPlus.Attribute.Colspan(2));
    

    The changes are in beta3, which is on the downloads page.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.