Skip to content
Snippets Groups Projects
Select Git revision
  • main
  • 65_async_query
  • 169_codemeta
  • issue/152_cleaning_up
  • adex-main protected
  • sdc380-aladin-cone-search
  • sdc-222_multi_archive_query_review
  • 69_add_diracIAM
  • dev-nico
  • dev-dirac
  • acceptance
  • dev-zooniverse
12 results

BatchParametersComponent.js

  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    BatchParametersComponent.js 507 B
    import React from "react";
    
    const handleFocus = (event) => event.target.select();
    
    export default function BatchParametersComponent(props) {
    
        const { param, setParam, label } = props;
    
        return (
                <table width="50%">
                    <tr>
                        <td colSpan={200}><label>{label}</label></td>
                        <td align="right"><input value={param} onChange={evt => setParam(evt.target.value)} onFocus={handleFocus}/></td>
                    </tr>
                </table>
        );
    
    }