feat: add datagrid module template and configuration documentation
This commit is contained in:
@@ -35,22 +35,66 @@ $relationDatas = [
|
||||
'allowEditing' => true, // Hücre içinde manuel path düzenleme
|
||||
],
|
||||
'rt_result' => [
|
||||
'type' => 'select', // Açılır menü
|
||||
'dataSource' => [ // Select için veri kaynağı (Opsiyonel: array veya URL olabilir)
|
||||
'type' => 'select', // Sabit seçenekli açılır menü
|
||||
'dataSource' => [
|
||||
['id' => 'ACCEPTED', 'name' => 'ACCEPTED'],
|
||||
['id' => 'REJECTED', 'name' => 'REJECTED'],
|
||||
['id' => 'REPAIR', 'name' => 'REPAIR'],
|
||||
],
|
||||
],
|
||||
'welding_date' => [
|
||||
'type' => 'date', // Tarih seçici
|
||||
'type' => 'date', // Tarih seçici (YYYY-MM-DD)
|
||||
],
|
||||
'created_at' => [
|
||||
'type' => 'datetime', // Tarih ve Saat seçici
|
||||
],
|
||||
'shift_time' => [
|
||||
'type' => 'time', // Saat seçici
|
||||
],
|
||||
'rt_scope' => [
|
||||
'type' => 'integer', // Sayısal giriş
|
||||
'type' => 'integer', // Tam sayı girişi
|
||||
],
|
||||
'other' => [
|
||||
'large_val' => [
|
||||
'type' => 'bigint', // Büyük tam sayı girişi
|
||||
],
|
||||
'price' => [
|
||||
'type' => 'decimal', // Ondalıklı sayı girişi (Hassas)
|
||||
],
|
||||
'ratio' => [
|
||||
'type' => 'float', // Ondalıklı sayı girişi
|
||||
],
|
||||
'description' => [
|
||||
'type' => 'long-text', // Çok satırlı metin (TextArea)
|
||||
]
|
||||
],
|
||||
'tags' => [
|
||||
'type' => 'multiple-choice', // Çoklu seçim (Etiket mantığı)
|
||||
'dataSource' => [
|
||||
['id' => 'tag1', 'name' => 'Tag 1'],
|
||||
['id' => 'tag2', 'name' => 'Tag 2'],
|
||||
],
|
||||
],
|
||||
'category' => [
|
||||
'type' => 'select-dropdown', // Arama yapılabilir açılır menü
|
||||
'dataSource' => 'api/categories', // URL'den veri çekebilir
|
||||
],
|
||||
'username' => [
|
||||
'type' => 'auto-complete', // Otomatik tamamlama (Yazarken öneri)
|
||||
],
|
||||
'search_query' => [
|
||||
'type' => 'fuzzy-autocomplete', // Esnek aramalı otomatik tamamlama
|
||||
],
|
||||
'metadata' => [
|
||||
'type' => 'json', // JSON veri tipi (Görsel düzenleyici)
|
||||
],
|
||||
'raw_config' => [
|
||||
'type' => 'input-json', // Ham JSON girişi
|
||||
],
|
||||
'status_text' => [
|
||||
'type' => 'string', // Standart kısa metin girişi
|
||||
],
|
||||
'custom_field' => [
|
||||
'type' => 'text', // Standart metin girişi (string ile benzer)
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user