8cadd00d34
Created by Github action --------- Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: github-actions <github-actions@twenty.com>
43 lines
1.9 KiB
Plaintext
43 lines
1.9 KiB
Plaintext
---
|
|
title: Intrare imagine
|
|
image: /images/user-guide/objects/objects.png
|
|
---
|
|
|
|
<Frame>
|
|
<img src="/images/user-guide/objects/objects.png" alt="Header" />
|
|
</Frame>
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
import { SandpackEditor} from '@site/src/ui/SandpackEditor'
|
|
import imageInputCode from '!!raw-loader!@site/src/ui/input/components/imageInputCode.js'
|
|
|
|
Permite utilizatorilor să încarce și să elimine o imagine.
|
|
|
|
<Tabs>
|
|
<Tab title="Usage">
|
|
|
|
```jsx
|
|
import { ImageInput } from "@/ui/input/components/ImageInput";
|
|
|
|
export const MyComponent = () => {
|
|
return <ImageInput/>;
|
|
};
|
|
```
|
|
|
|
</Tab>
|
|
<Tab title="Props">
|
|
|
|
| Proprietăți | Tip | Descriere |
|
|
| ----------- | ------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
| imagine | șir | URL-ul sursei imaginii |
|
|
| onUpload | funcție | Funcția apelată când un utilizator încarcă o imagine nouă. Primește obiectul `File` ca parametru |
|
|
| onRemove | funcție | Funcția apelată când utilizatorul face clic pe butonul de eliminare |
|
|
| onAbort | funcție | The function called when a user clicks on the abort button during image upload |
|
|
| isUploading | boolean | Indicates whether an image is currently being uploaded |
|
|
| mesajEroare | șir | Un mesaj de eroare opțional care să fie afișat sub intrarea imaginii |
|
|
| dezactivat | boolean | Dacă este „adevărat”, întreaga intrare este dezactivată, iar butoanele nu sunt clicabile |
|
|
|
|
</Tab>
|
|
</Tabs>
|