001c2097a3
Created by Github action <!-- mintlify-editor-comments:start --> Mintlify --- 0 threads from 0 users in Mintlify - No unresolved comments <!-- mintlify-editor-comments:end --> <!-- mintlify-comment--> <a href="https://dashboard.mintlify.com/twenty/twenty/editor/i18n-docs?source=pr_comment" target="_blank" rel="noopener noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-light.svg"><img src="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-light.svg" alt="Open in Mintlify Editor"></picture></a> <!-- /mintlify-comment --> Co-authored-by: github-actions <github-actions@twenty.com>
51 lines
2.1 KiB
Plaintext
51 lines
2.1 KiB
Plaintext
---
|
|
title: Kontrollkästchen
|
|
image: /images/user-guide/tasks/tasks_header.png
|
|
---
|
|
|
|
<Frame>
|
|
<img src="/images/user-guide/tasks/tasks_header.png" alt="Kopfzeile" />
|
|
</Frame>
|
|
|
|
Wird verwendet, wenn ein Benutzer mehrere Werte aus mehreren Optionen auswählen muss.
|
|
|
|
<Tabs>
|
|
<Tab title=""Verwendung"">
|
|
|
|
```jsx
|
|
import { Checkbox } from "twenty-ui/display";
|
|
|
|
export const MyComponent = () => {
|
|
return (
|
|
<Checkbox
|
|
checked={true}
|
|
indeterminate={false}
|
|
onChange={() => console.log("onChange function fired")}
|
|
onCheckedChange={() => console.log("onCheckedChange function fired")}
|
|
variant="primary"
|
|
size="small"
|
|
shape="squared"
|
|
/>
|
|
);
|
|
};
|
|
```
|
|
|
|
</Tab>
|
|
<Tab title=""Eigenschaften"">
|
|
|
|
|
|
| "Eigenschaften" | Typ | Beschreibung |
|
|
| ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------------- |
|
|
| markiert | boolesch | Gibt an, ob das Kontrollkästchen markiert ist |
|
|
| unbestimmt | boolesch | Gibt an, ob sich das Kontrollkästchen in einem unbestimmten Zustand befindet (weder markiert noch unmarkiert) |
|
|
| beiÄnderung | Funktion | Die Rückruffunktion, die ausgelöst werden soll, wenn sich der Zustand des Kontrollkästchens ändert |
|
|
| beiMarkierungsÄnderung | Funktion | Die Rückruffunktion, die ausgelöst werden soll, wenn sich der `markiert` Zustand ändert |
|
|
| Variante | Zeichenkette | Der visuelle Stil der Box. Optionen umfassen: `primary`, `secondary` und `tertiary` |
|
|
| größe | Zeichenkette | Die Größe des Kontrollkästchens. Hat zwei Optionen: `klein` und `groß` |
|
|
| Form | Zeichenkette | Die Form des Kontrollkästchens. Hat zwei Optionen: `squared` und `rounded` |
|
|
|
|
|
|
|
|
</Tab>
|
|
</Tabs>
|