Logo
The Logo
component represents a logo or a brand symbol. Usually, you use this component in the AppHeader
.
You can learn more about using logos in application layouts in the App Component article.
Using Logo
The framework checks the application manifest for a logo resource (SVG file). If found, it loads and displays it in the Logo component.
This is a sample manifest that shows a logo definition:
{
"name": "Tutorial",
"version": "0.0.1",
"resources": {
"logo": "resources/xmlui-logo.svg",
"favicon": "resources/favicon.ico"
}
}
In the following example, you can see a custom logo definition in the AppHeader
via templating.
There is a Heading
with the title text "MyApp" before the logo.
It also uses the Logo
component within the template definition:
<App layout="horizontal">
<AppHeader>
<property name="logoTemplate">
<Fragment>
<Heading level="h2" value="MyApp"/>
<Logo/>
</Fragment>
</property>
</AppHeader>
<NavPanel>
<NavLink label="Home" to="/" icon="home"/>
</NavPanel>
<Pages defaultRoute="/">
<Page url="/">
<CHStack>
(Sample content)
</CHStack>
</Page>
</Pages>
</App>
The markup displays the app's logo:
Properties
This component does not have any properties.
Events
This component does not have any events.
Exposed Methods
This component does not expose any methods.
Styling
This component does not have any styles.