Click here to Skip to main content
15,878,748 members
Articles / Web Development / HTML

HTML5 Knockout TriState Tree Control

Rate me:
Please Sign up or sign in to vote.
4.67/5 (5 votes)
22 Oct 2012CPOL4 min read 34.2K   1.7K   9  
Used HTML5 Knockout MVVM binding to make TriState Tree Control
.UncheckedCheckBox {
    background: url('../Images/chk-1.jpg') no-repeat center;
    width: 16px;
    height: 16px;
    border: none;
    display: inline-block;
    overflow: hidden;
    margin: 0px;
    padding: 0px;
    vertical-align: central;
    text-align: center;
}

.CheckedCheckBox {
    background: url('../Images/chk-2.jpg') no-repeat center;
    width: 16px;
    height: 16px;
    border: none;
    display: inline-block;
    overflow: hidden;
    margin: 0px;
    padding: 0px;
    vertical-align: central;
    text-align: center;
}

.IndeterminateCheckBox {
    background: url('../Images/chk-3.jpg') no-repeat center;
    width: 16px;
    height: 16px;
    border: none;
    display: inline-block;
    overflow: hidden;
    margin: 0px;
    padding: 0px;
    vertical-align: central;
    text-align: center;
}

.CheckBoxOuterDiv {
    display: inline;
    cursor: pointer;
    margin: 0px;
    padding: 0px;
    vertical-align: central;
    text-align: center;
}

.CheckBoxDisplayText {
    margin: 0px;
    padding: 0px;
    vertical-align: central;
    text-align: center;
}

.ExpandCheckBoxTree {
    background: url('../Images/ex-1.jpg') no-repeat center;
    width: 16px;
    height: 16px;
    border: none;
    display: inline-block;
    overflow: hidden;
    margin: 0px;
    padding: 0px;
    vertical-align: central;
    text-align: center;
    cursor: pointer;
}

.CollapseCheckBoxTree {
    background: url('../Images/ex-2.jpg') no-repeat center;
    width: 16px;
    height: 16px;
    border: none;
    display: inline-block;
    overflow: hidden;
    margin: 0px;
    padding: 0px;
    vertical-align: central;
    text-align: center;
    cursor: pointer;
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
India India
Myself from the dream city of Mumbai,India.
Academically, I have completed Degree and Diploma in Computer Science engineering

I started working as a freelance programmer, on fronts like embedded systems, web, windows , using Microsoft as well as Sun technologies.

Presently working in a reputed IT company.

Comments and Discussions