Configuration
Configure Uno Admin with the uno property in app.config.ts.
Minimal app.config.ts
export default defineAppConfig({
uno: {
title: 'Uno Admin',
description: 'My Uno Admin Project',
}
})
Each of these settings can be overridden in a feature. Access create new feature for learn more.
Add a Sidebar Item
To add a sidebar item, include an object in the sidebarMenuItem
property in the uno configuration within app.config.ts
.
Hello World!
app.config.ts
export default defineAppConfig({
uno: {
sidebarMenuItems:{
label: 'My Item';
icon?: 'i-heroicons-home';
}
}
})
Key | Type | Description |
---|---|---|
label | string | |
icon | string | Item icon, if the img property is defined this will be deprecated. You can use any name from the https://icones.js.org collection such as the i- prefix |
img | string? | Path of a image |
to | string? | Item link, can be a external url or internal application path |
order | number | Indicates the order in which the item will appear |
rules | ||
---|---|---|
subject | The subject or subject type which you want to check user action on. Usually this is a business (or domain) entity (e.g., Subscription, Article, User). | |
action | Describes what user can actually do in the app. User action is a word (usually a verb) which depends on the business logic (e.g., prolong, read). |
For learn more about rules check access control section