Skip to content

Property editor (and value converter) for a table with row / column text and checkbox cells

License

Notifications You must be signed in to change notification settings

Hendy/umbraco-checkbox-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Umbraco Checkbox Table

Property editor for a table with editable rows/columns and toggleable cells.

The NuGet package installs a single assembly Our.Umbraco.CheckboxTable.dll which has a dependency on Umbraco Embedded Resource.

Property Editor

Property Editor Example

Property Editor Configuration

Property Editor Configuration Example

Model Rendering

@{
    // model (as would be set)
    Our.Umbraco.CheckboxTable.Models.CheckboxTable checkboxTable; 
}

<table>
    <tr>
        <th></th> <!-- irrelevant cell -->
        @foreach (var columnLabel in checkboxTable.ColumnLabels)
        {
            <th>@columnLabel</th>
        }
    </tr>
    @foreach (var row in checkboxTable.Rows)
    {
        <tr>
            <td>@row.RowLabel</td>
            @foreach (var cell in row.Cells)
            {
                <td>@(cell ? "X" : "")</td>
            }
        </tr>
    }
</table>

About

Property editor (and value converter) for a table with row / column text and checkbox cells

Resources

License

Stars

Watchers

Forks

Packages

No packages published