Replies: 2 comments
-
Please provide a complete code example of the form. And out of curiosity, why do you want the date picker as a single element in a modal? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@pascalbaljet The code below is just an example. <x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Create Tweet') }}
</h2>
</x-slot>
<x-panel class="min-h-screen">
<x-splade-form action="{{route('store.tweet')}}" class="flex flex-row">
<x-splade-data :default="$twitterAccount">
<TweetCreate v-slot="TweetCreate">
<x-tweet-create></x-tweet-create>
<x-tweet-preview></x-tweet-preview>
</TweetCreate>
<x-splade-modal modal name="schedule-modal">
<x-splade-input name="scheduled_at" date time />
</x-splade-modal>
</x-splade-data>
</x-splade-form>
</x-panel>
</x-app-layout> There are severals options. One of them is Tweet Scheduling. And The Modal Button Code looks like below <Link href="#schedule-modal">Create Schedule</Link> Obviously, I can handle the whole form using a normal form or in a splade modal. But I want to try that for user friendly UI. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a form with 5 inputs. I want to take my Last input as Flatpickr using pre-loaded modal. But when I click to Open the Modal I got an Error like below
But If I use
It works.
So how can I use the modal without defining the form component?
OR how can assign the pre-defined form with the modal component?
Beta Was this translation helpful? Give feedback.
All reactions