# dhtmlxtree:api_method_dhtmlxtreeobject_setchildcalcmode [DHX documentation]

DHTMLX Docs & Samples Explorer

Index
dhtmlxtree
API Methods

### setChildCalcMode( mode )

Required library edition:
Required library file: dhtmlxtree.js

set children calculation mode

- mode - mode name as string . Possible values: child - children, no recursive; leafs - children without subchildren, no recursive; ,childrec - children, recursive; leafsrec - children without subchildren, recursive; disabled (disabled by default)