UNPKG

@momentum-ui/react-collaboration

Version:

Cisco Momentum UI Framework for React Collaboration Applications

17 lines 507 B
/** * Create a tree node with the given id, isOpen and children. * * @param id The id of the node * @param isOpenByDefault * @param children List of child nodes */ export var createTreeNode = function (id, isOpenByDefault, children) { if (isOpenByDefault === void 0) { isOpenByDefault = undefined; } if (children === void 0) { children = []; } return ({ children: children, isOpenByDefault: isOpenByDefault, id: id, }); }; //# sourceMappingURL=test.utils.js.map