Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting page title #33

Closed
jdion84 opened this issue Aug 25, 2023 · 3 comments
Closed

setting page title #33

jdion84 opened this issue Aug 25, 2023 · 3 comments
Assignees

Comments

@jdion84
Copy link

jdion84 commented Aug 25, 2023

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
Copy link
Collaborator

nunomaduro commented Aug 25, 2023

new #[Title('my title')]
class extends Component
{
    //
}; ?>

@jdion84
Copy link
Author

jdion84 commented Aug 25, 2023

I mean for functional api

@onemoreahmad
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants