kalle
10/27/2022, 7:32 PMuwascan
10/27/2022, 10:46 PMkalle
10/27/2022, 11:23 PMuwascan
10/28/2022, 1:48 AMuwascan
10/28/2022, 1:59 AMuwascan
10/28/2022, 2:26 AM@section('content')
@parent
{{-- Add a form for the custom POST action, outside of Twill's main form --}}
<form action="/admin/my-custom-action" method="POST" hidden>
<input type="hidden" ref="replyData" v-model="reply_message" />
<button type="submit" ref="actionApproveBtn">Approve</button>
</form>
@stop
dakaalim
10/28/2022, 3:02 AMRoute::get('/locations/{slug}', [LocationController::class, 'page'])->name('location');
controller
use A17\TwillTransformers\ControllerTrait;
public function page($slug, LocationRepository $repo)
{
$data = $repo->published()->forSlug($slug)->first();
return $this->view($data ?? null);
}
This is what working for me, please point me in the right direction if you know a 'better' way.Harings Rob
10/28/2022, 7:01 AMifox
10/28/2022, 7:17 AM$data = $repo->forSlug($slug);
for the same resultkalle
10/28/2022, 8:55 AMuwascan
10/28/2022, 10:18 AMpboivin
10/28/2022, 1:15 PMuwascan
10/30/2022, 1:14 AM<a17-textfield name="message" label="Message Body"
type="textarea" :rows="5" v-model="form.message">
</a17-textfield>
Two way binding with v-model is not working. Is there any documentation of the Vue components of Twill?uwascan
10/30/2022, 1:37 AMBA7YA
10/31/2022, 9:35 AMHip-Hop
10/31/2022, 9:37 AMifox
10/31/2022, 9:49 AMifox
10/31/2022, 9:50 AMHip-Hop
10/31/2022, 10:51 AMifox
10/31/2022, 10:55 AMdevtutorum
10/31/2022, 4:26 PMHarings Rob
10/31/2022, 5:20 PMHip-Hop
11/01/2022, 10:04 AMHarings Rob
11/01/2022, 10:06 AMHip-Hop
11/01/2022, 10:13 AMHarings Rob
11/01/2022, 10:13 AMifox
11/01/2022, 10:15 AMHip-Hop
11/01/2022, 10:17 AMHip-Hop
11/01/2022, 11:19 AM@formField('input', [
'name' => 'test',
'label' => 'test',
'default' => 'text text',
])
But the field is empty.Harings Rob
11/01/2022, 11:49 AM