krejcon3 / checkboxtree
easy checkboxtree
Installs: 985
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 3
Open Issues: 2
pkg:composer/krejcon3/checkboxtree
Requires
- php: >=5.3.0
- nette/nette: ~2.0
This package is not auto-updated.
Last update: 2025-10-07 11:54:33 UTC
README
Form Component for Nette framework
##Application
Register to form: app/bootstrap.php
\krejcon3\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...