livewire / volt

Volt is an elegantly crafted functional API for Livewire.
https://livewire.laravel.com/docs/volt
MIT License
327 stars 19 forks source link

setting page title #33

Closed jdion84 closed 1 year ago

jdion84 commented 1 year ago

in livewire we can use attribute to set page title, however I saw no way how to in docs for volt

is there a function like title() we can use for this or am I missing something?

nunomaduro commented 1 year ago
new #[Title('my title')]
class extends Component
{
    //
}; ?>
jdion84 commented 1 year ago

I mean for functional api

onemoreahmad commented 1 year ago

@nunomaduro What about dynamic title for class based Volt component, ex: public function title(){ return __('Some title');} there is no title function nor render function in Volt. Any idea how to set dynamic title for class based Volt component? Thanks a lot.