Skip to content

MartinMikita/CheckBoxTree

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#CheckBoxTree

Form Component for Nette framework

##Application

Register to form: Append the following line into the file app/bootstrap.php:

\MartinMikita\CheckboxTree::register();

##Using

$form->addCheckboxTree(
    "cbtree",
    "CheckboxTree",
    array(
        1 => "item1",
        2 => "item2",
        3 => "item3",
        "noid1" => array(
            4 => "item4",
            5 => "item5",
        ),
        6 => "item6"
    )
);

input is multidimensional array
output si simple array of keys (ids),
id by the next level (noid1 in example) may be anything you want...

About

Form Component for Nette framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%