UserListControl.jsx

56 lines | 1.433 kB Blame History Raw Download


//class UserListControl extends React.Component {

//    constructor(props) {
//        super(props);
//        Log("UserListControl", "start");

//        this.state = { data: null };
//        this.ChildRows = [];
//        //this.authServices = new AuthServices();
//        this.userServices = new UserServices();

        
//    }

//    DownloadUsers() {
//        this.userServices.GetUsersAsync().
//            then(function (data) {
//                this.setState({ data: data });
//            }.bind(this));
//    }
//    UploadUsers() {

//    }


//    render() {
//        let data = this.state.data;

//        return (
//            <div>
//                {
//                    data.items.map(function (elem, i, arr) {
//                        if (elem.Changes == 3)
//                            return;

//                        return [
//                            <FileExplorerRow ref={row => {
//                                if (row != null) this.ChildRows[i] = row;
//                                else this.ChildRows.splice(i, 1);
//                            }}
//                                ShoSelect={false}
//                                ID={i}
//                                data={elem}
//                                ParentComponent={this}
//                            />
//                        ];
//                    }.bind(this))
//                }
//            </div>
//        );
//    }
//}