Skip to content

Commit

Permalink
feat: Select -> native
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Aug 28, 2024
1 parent efdd366 commit 2930e29
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resources/views/pages/en/fields/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
['url' => '#update-on-preview', 'label' => 'Editing in preview'],
['url' => '#with-image', 'label' => 'Values with picture'],
['url' => '#options', 'label' => 'Options'],
['url' => '#native', 'label' => 'Native mode'],
]
]"
>
Expand Down Expand Up @@ -306,4 +307,14 @@ public function fields(): array

@include('pages.en.fields.shared.choices_options', ['field' => 'Select'])

<x-sub-title id="native">Native mode</x-sub-title>

<x-p>
The <code>native()</code> method disables the Choices.js library and displays select in native mode
</x-p>

<x-code language="php">
Select::make('Type')->native()
</x-code>

</x-page>
10 changes: 10 additions & 0 deletions resources/views/pages/ru/fields/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
['url' => '#update-on-preview', 'label' => 'Редактирование в preview'],
['url' => '#with-image', 'label' => 'Значения с изображением'],
['url' => '#options', 'label' => 'Опции'],
['url' => '#native', 'label' => 'Нативный режим'],
]
]"
>
Expand Down Expand Up @@ -306,4 +307,13 @@ public function fields(): array

@include('pages.ru.fields.shared.choices_options', ['field' => 'Select'])

<x-sub-title id="native">Нативный режим</x-sub-title>

<x-p>
Метод <code>native()</code> отключает библиотеку Choices.js и выводит select в нативном режиме
</x-p>

<x-code language="php">
Select::make('Type')->native()
</x-code>
</x-page>

0 comments on commit 2930e29

Please sign in to comment.