3dd858c91e
Created by Github action Pulls the latest documentation translations from Crowdin for all supported languages: - French (fr) - Arabic (ar) - Czech (cs) - German (de) - Spanish (es) - Italian (it) - Japanese (ja) - Korean (ko) - Portuguese (pt) - Romanian (ro) - Russian (ru) - Turkish (tr) - Chinese (zh-CN) --------- Co-authored-by: github-actions <github-actions@twenty.com>
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
---
|
||
title: Toggle
|
||
image: /images/user-guide/table-views/table.png
|
||
---
|
||
|
||
<Frame>
|
||
<img src="/images/user-guide/table-views/table.png" alt="Başlık" />
|
||
</Frame>
|
||
|
||
<Tabs>
|
||
<Tab title="Kullanım">
|
||
```jsx
|
||
import { Toggle } from "twenty-ui/input";
|
||
|
||
export const MyComponent = () => {
|
||
return (
|
||
<Toggle
|
||
value = {true}
|
||
onChange = {()=>console.log('On Change event')}
|
||
color="green"
|
||
toggleSize = "medium"
|
||
/>
|
||
);
|
||
};
|
||
```
|
||
</Tab>
|
||
|
||
<Tab title="Özellikler">
|
||
| Özellikler | Tür | Açıklama | Varsayılan |
|
||
| ---------- | --------- | ------------------------------------------------------------------------------------------------------- | ------------ |
|
||
| değer | boolean | Geçiş butonunun mevcut durumu | `yanlış` |
|
||
| onChange | fonksiyon | Callback function triggered when the toggle state changes | |
|
||
| renk | metin | Color of the toggle when it\ | mavi renktir |
|
||
| toggleSize | metin | Geçiş butonunun boyutu, hem yüksekliği hem de genişliği etkiler. İki seçeneği vardır: `küçük` ve `orta` | orta |
|
||
</Tab>
|
||
</Tabs>
|