-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component which can be used to edit cells inline #844
Comments
I started thinking about this. I think, we can create a styled input like that : const Input = styled.input`
width: 100%;
background-color: inherit;
:hover,
:focus {
border: solid black 1px;
}
`; The input will take 100% width. Bad things, he will not grow with the text but, cannot take a larger width than parent div. export function Test() {
const [state, setState] = useState('');
return (
<div>
<div style={{ backgroundColor: 'red', maxWidth: 200 }}>
<Input onBlur={(event) => setState(event.currentTarget.value)} />
</div>
<div>{state}</div>
</div>
);
} Do we need something like that ? If yes, we do not have to create a new Input it looks ok ! |
With our latest meeting we said that : Ajouter une story avec un tableau qui contient des cellule éditable et le maximum de fonctionnalité pour ce tableau. On doit ajouter une action afin de supprimer une ligne (icon sur la droite) Pour l'édition inline :
Créer un composant utilisable n'importe ou qui peux faire un rendu conditionnelle.
On admet que pour sélectionner une ligne on doit avoir un radio ou une checkbox Voici la liste des composants possible pour faire le rendu :
Petit plus :
|
Integrate a simple input / text area within cells of a table which looks and behaves like inline editable cell.
Tab should focus the next editable cell.
Let's start by creating a story for this and later see if it would be worth making a component out of this.
The text was updated successfully, but these errors were encountered: