Posibility to add checkbox, and images to a column

Issue #6 new
Former user created an issue

Hi

Can you show an example where you put a checkbox in the first column of each row? And add pictures to the last column of each row? Is it possible with your plugin?

Thanks in advance

Comments (2)

  1. Ben Wilson repo owner

    Here's an example of a table with a checkbox column.

        <dt:datatable name="serverSideAuthorsCheckbox" domainClass="datatablestest.Author" serverSide="true">
            <dt:checkboxColumn selectAll="true"/>
            <dt:column name="firstName"/>
            <dt:column name="lastName"/>
            <dt:column name="dateOfBirth" dataType="date" order="asc"/>
        </dt:datatable>
    
  2. Ben Wilson repo owner

    To add images you could put the <img> element in your data, or you could add a span and use css to add an image to the span. If you don't want to alter your data you could also use the dataFunction column option to add the images to the column.

  3. Log in to comment