0.2.1 • Published 4 years ago
osp-sidebar-layout v0.2.1
OSP Sidebar Layout
Common sidebar component to be use in One Stop Portal, high level wrapper on top of yaminncco/vue-sidebar-menu
Demo
Demo link on OSP platform: https://portal.osp.sit.inet.paynet.my/dashboard
Run Locally
Clone the project
git clone https://gitlab.infra.paynet.my/one-stop-portal/applications/front-end/sidebar-layout.git
Go to the project directory
cd sidebar-layout
Install dependencies
npm install
Start the server
npm run serve
Tech Stack
- Vuejs
- yaminncco/vue-sidebar-menu
Deployment
To deploy this project run
npm run build
npm publish
Basic Usage
<script>
import { OspSidebarLayout } from "osp-sidebar-layout";
export default {
name: "Example",
components: {
OspSidebarLayout
}
};
</script>
<template>
<div id="app">
<OspSidebarLayout>
Testing
</OspSidebarLayout>
</div>
</template>
Props
props | type | required | default | Remark |
---|---|---|---|---|
onLogout | Function | false | () => {} | |
onLogin | Function | false | () => {} | |
userFirstName | String | false | "" | |
userFirstName | String | false | "" | |
stateUnauthenticated | Boolean | false | false | If true Unauthenticate message will be shown |
stateAccessDenied | Boolean | false | false | If true Access Denied messesage will be shown |
stateSessionExpired | Boolean | false | false | If true Session Expired messesage will be shown |
stateLoading | Boolean | false | false | If true Getting Ready messesage will be shown |
sidebarMenu | String | false | [] | Full list of options |
0.2.0-rc.3
4 years ago
0.2.0-rc.2
4 years ago
0.2.0-rc.1
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.7-rc.1
4 years ago
0.1.7-rc.2
4 years ago
0.1.7-rc.3
4 years ago
0.1.6-rc.3
4 years ago
0.1.8-rc.1
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.9
4 years ago
0.1.6-rc.2
4 years ago
0.1.6-rc.1
4 years ago
0.1.5-rc.1
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4-rc.4
4 years ago
0.1.4-rc.3
4 years ago
0.1.4-rc.2
4 years ago
0.1.2
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.0.10
4 years ago
0.1.0
4 years ago
0.1.1
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago