WordPress.org

Ready to get started?Download WordPress

Forums

Easy Table
[resolved] What attributes can be assigned per cell? (3 posts)

  1. MickeyRoush
    Member
    Posted 2 years ago #

    The latest update says:

    Added: Ability to set attribute for each cell.

    Could you list somewhere the available attributes? Or are they limited at all?

    Also nowhere does it mention what you can use for a blank cell. It looks as these are possible:

    double quotes "" or just use , or , 

    Or would it be better to just use the commas with no data between them, like so:

    ,,

    Thanks for your great work on this lightweight plugin. I feel more people would use it if there was better documentation.

    Thanks again.

    http://wordpress.org/extend/plugins/easy-table/

  2. takien
    Member
    Plugin Author

    Posted 2 years ago #

    Hello MickeyRoush, sorry for late reply, I found this post form Google. :doh:

    for allowed attribute see this reference for HTML5 markup
    http://www.w3.org/TR/html-markup/td.html
    including but not limited to:

    class
    dir
    draggable
    id
    lang
    style
    title
    colspan
    rowspan
    headers

    and also these attribute that is deprecated in HTML5

    scope
    abbr
    axis
    align
    width
    char
    charoff
    valign
    bgcolor
    height
    nowrap

    How to set attribute?

    To set attribute use this short tag [attr attrkey="attrvalue"] on a cell (before or after the data but not both).

    [table]
    r1c1[attr style="color:red"],r1c2[attr valign="top"]
    r2c1[attr class="special"],r2c2[attr id="something"]
    [/table]

    you're right, to create an empty cell just use comma.
    example:

    [table]
    1,,,,
    2,,,,
    [/table]
  3. MickeyRoush
    Member
    Posted 2 years ago #

    @ takien

    Thanks! Your awesome! And your plugin is awesome too!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic