Custom Field - load data for the view
I initially thought a custom field was just a base livewire component. It appears I can't run Livewire lifecycle methods in the component though.
How can I load some data from my database to render in the view for a custom field?
4 Replies
I figured there was a different way because it mentions
However, more complex configuration can be achieved with a custom field class.
In other words what can I even do in the backend component fileWell, for example the Tiptap Editor plugin at it core is mostly a custom field. So the possibilities with a custom field are virtually endless.
sir, you have example code of changing data on viewData()? i mean from activity on view, for example, viewData([
'count' => 0
])
nah i wanna make that 'count' to increasing by button from view