select remote placeholder dynamic

This commit is contained in:
Cihan Şentürk 2021-10-06 10:29:08 +03:00
parent 5ca55088cf
commit 05df88595f

View File

@ -13,7 +13,13 @@
icon="{{ $icon }}" icon="{{ $icon }}"
title="{{ $text }}" title="{{ $text }}"
@if (isset($attributes['placeholder']))
placeholder="{{ $attributes['placeholder'] }}"
@else
placeholder="{{ trans('general.form.select.field', ['field' => $text]) }}" placeholder="{{ trans('general.form.select.field', ['field' => $text]) }}"
@endif
name="{{ $name }}" name="{{ $name }}"
:options="{{ json_encode($values) }}" :options="{{ json_encode($values) }}"
@ -48,7 +54,7 @@
@if (!empty($attributes['visible-change'])) @if (!empty($attributes['visible-change']))
@visible-change="{{ $attributes['visible-change'] }}" @visible-change="{{ $attributes['visible-change'] }}"
@endif @endif
@if (isset($attributes['readonly'])) @if (isset($attributes['readonly']))
:readonly="{{ $attributes['readonly'] }}" :readonly="{{ $attributes['readonly'] }}"
@endif @endif