Dashtic - Reactstrap Webapp Responsive Dashboard Simple Admin Panel Premium Template

Note:-

Please refer Faq'spage in documentation itself for queries of customization like colors,rtl,light or dark styles etc..

Routing

In a single-page application, you change what the user sees by showing or hiding portions of the display that correspond to particular components, rather than going out to the server to get a new page. As users perform application tasks, they need to move between the different views that you have defined.

To handle the navigation from one view to the next, you use the React Router. The Router enables navigation by interpreting a browser URL as an instruction to change the view. Your complete route structure is place at main.jsx (Routing) file under src » Shared » Router » Router.jsx

Suppose you want to create a new module ( For creating a new module refer create new module ) then you have to add new routes for that modules.

Basic Route

Following are the fundamental building blocks to creating a route.

  1. Import the main.jsx into App.jsx and add it to the imports array.
  2.    
    import React, { lazy } from "react"
    import { Routes, Route } from "react-router-dom";
    const App = lazy(() => import("../Layouts/App"));
    
    //component import
        
    const Dashboard = lazy(() => import("../../components/Dashboard/Dashboard01/Dashboard01"));
        
    export const Routing = () => {
    
    return (
    
       <React.Suspense fallback={<Loader />}>
    
       <Routes>
    
    //Layout Structure
    
    <Route path={`${import.meta.env.BASE_URL}`} element={<App />}>
    
    //Home page
    
        <Route>
            <Route index element={<Dashboard />} />
                <Route path={`${import.meta.env.BASE_URL}dashboard/dashboard01`} element={<Dashboard />} />
            </Route>
        </Route>
    </Route>
    </Routes>
    </React.Suspense>
    )
    }
    
    Then import the component (Routing component) to main.jsx ( main-routing layout) just like below example;
                        
    import React from "react";
    import ReactDOM from "react-dom/client";
    import "./index.scss";
    import { BrowserRouter } from "react-router-dom";
    import { Routing } from "./Shared/Router/Router";
    
    ReactDOM.createRoot(document.getElementById("root")).render(
      <React.Fragment>
        <BrowserRouter >
          <Routing/>
        </BrowserRouter>
      </React.Fragment>
    );
    Configure Link in Menu

    To Add new link in Sidemenu

    Following are the fundamental building blocks to creating a new link.

    
    ├── node_modules
    ├── public
    ├── src
          ├──components
                ├──Shared
                    ├──Sidebar
                    ├──SideMenu.jsx
        Ex:  [
               {
                  menutitle: "MAIN",
                  Items: {
                    title: "Dashboards",
                    icon: svg className="side-menu__icon" xmlns="http://www.w3.org/2000/svg" width="24" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
                    <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></code>
                    <polyline points="9 22 9 12 15 12 15 22"></polyline></code>,
                    type: "sub",
                    selected: false,
                    active: false,
                    children: [
                    {
                      path: `${import.meta.env.BASE_URL}dashboard/dashboard01`,
                      type: "link",
                      active: false,
                      selected: false,
                      title: "Dashboard 01",
                    },
                    ]
                  }
                },
            ]
                        
                        
Important License Terms
  • You cannot charge your end product end users with a Regular License.
  • If you want to collect payments from end product end users then you must buy an Extended License for each of the end product.
  • You must buy one license for one domain only.(i.e Either Regular or Extended)
  • You cannot use Multi Domain,Multi Client, Multiple end Products with any of the licenses (i.e Either Regular or Extended).

for more details please click the link