diff --git a/web-console/src/components/table-column-selection.scss b/web-console/src/components/table-column-selection.scss new file mode 100644 index 00000000000..ddce873086e --- /dev/null +++ b/web-console/src/components/table-column-selection.scss @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +.table-column-selection { + + float: right; + + .pt-popover-content { + padding: 10px 10px 1px 10px; + } + + .form-group { + margin-bottom: 0; + } + +} diff --git a/web-console/src/components/table-column-selection.tsx b/web-console/src/components/table-column-selection.tsx new file mode 100644 index 00000000000..bd86fe7a0ed --- /dev/null +++ b/web-console/src/components/table-column-selection.tsx @@ -0,0 +1,68 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { Button, Checkbox, Popover, Position } from "@blueprintjs/core"; +import * as React from 'react'; + +import { FormGroup, IconNames } from "./filler"; + +import "./table-column-selection.scss"; + +interface TableColumnSelectionProps extends React.Props { + columns: string[]; + onChange: (column: string) => void; + tableColumnsHidden: string[]; +} + +interface TableColumnSelectionState { + +} + +export class TableColumnSelection extends React.Component { + + constructor(props: TableColumnSelectionProps) { + super(props); + this.state = { + + }; + } + + render() { + const { columns, onChange, tableColumnsHidden } = this.props; + const checkboxes = + { + columns.map(column => { + return onChange(column)} + />; + }) + } + ; + return +