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
schwartzmj
schwartzmj6mo ago
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 file
awcodes
awcodes6mo ago
Well, for example the Tiptap Editor plugin at it core is mostly a custom field. So the possibilities with a custom field are virtually endless.
zydnrbrn
zydnrbrn5mo ago
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