Customize Azion Console with Console Kit
Azion Console Kit allows you to craft a custom Azion interface to fit your business needs. In this guide, you'll learn how to make some simple visual changes to the Azion Console.
Azion Console Kit allows you to craft a custom Azion interface to fit your business needs. In this guide, you’ll learn how to make some simple visual changes to the Azion Console.
Adding an interface component and creating a route function for navigation
In this example, you’ll add a new user interface (UI) component to a list view to draw attention to an important step of a workflow process for Console users.
You’ll add the InlineMessage and PrimeButton components to the Applications list view to alert your users that they must create a domain to see applications online, with a button action that directs users to the create-domain route. To do so:
- Open the Console Kit project in your IDE.
- Run
azion devto initialize a local development server. - In the
src/viewsfolder, locate the Application list view and modify the code as follows:
- In the constant declaration section of the code, create the
routerconst to reference the router function:
- Create the
navigateToDomainsfunction that will be executed when the user clicks thePrimeButtonbefore closing the<script>tag:
- Now add the elements to the layout of the list view inside the
<template>tag:
- On the browser, access the localhost address and navigate to the Applications page. You should see the
InlineMessageelement with aPrimeButtonunder the heading. - After you’re done, run
azion deployto launch the changes to the edge.