● AutoComplete
+
● Calendar
● Checkbox
● Chips
● Dropdown
diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue
new file mode 100644
index 000000000..fab4708e6
--- /dev/null
+++ b/src/components/calendar/Calendar.vue
@@ -0,0 +1,425 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{weekDay}}
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
index de69f7f32..ce19b4443 100644
--- a/src/main.js
+++ b/src/main.js
@@ -5,6 +5,7 @@ import AutoComplete from './components/autocomplete/AutoComplete';
import Accordion from './components/accordion/Accordion';
import AccordionTab from './components/accordion/AccordionTab';
import Button from './components/button/Button';
+import Calendar from './components/calendar/Calendar';
import Card from './components/card/Card';
import Chart from './components/chart/Chart';
import Checkbox from './components/checkbox/Checkbox';
@@ -57,6 +58,7 @@ Vue.component('Accordion', Accordion);
Vue.component('AccordionTab', AccordionTab);
Vue.component('AutoComplete', AutoComplete);
Vue.component('Button', Button);
+Vue.component('Calendar', Calendar);
Vue.component('Card', Card);
Vue.component('Chart', Chart);
Vue.component('Checkbox', Checkbox);
diff --git a/src/router.js b/src/router.js
index 47627bd08..cea779ab6 100644
--- a/src/router.js
+++ b/src/router.js
@@ -26,6 +26,11 @@ export default new Router({
name: 'button',
component: () => import('./views/button/ButtonDemo.vue')
},
+ {
+ path: '/calendar',
+ name: 'calendar',
+ component: () => import('./views/calendar/CalendarDemo.vue')
+ },
{
path: '/card',
name: 'card',
diff --git a/src/views/calendar/CalendarDemo.vue b/src/views/calendar/CalendarDemo.vue
new file mode 100644
index 000000000..4e88c3f9f
--- /dev/null
+++ b/src/views/calendar/CalendarDemo.vue
@@ -0,0 +1,36 @@
+
+
+
+
+
Calendar
+
Calendar is an input component to select a date.
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/calendar/CalendarDoc.vue b/src/views/calendar/CalendarDoc.vue
new file mode 100644
index 000000000..a6f871104
--- /dev/null
+++ b/src/views/calendar/CalendarDoc.vue
@@ -0,0 +1,185 @@
+
+
+
+
+ Import
+
+import Button from 'primevue/button';
+
+
+ Getting Started
+ Button is created using the Button element.
+
+<Button />
+
+
+ Label
+ Text of the button is defined using the label property.
+
+<Button label="Click" />
+
+ Icons
+ Icon on a button is specified with icon property and position is configured using iconPos attribute. Default
+ icon position is "left" and alternative is "right". To display only an icon, leave label as undefined.
+
+<Button label="Click" icon="pi pi-check" iconPos="right" />
+
+
+ Events
+ Events are defined with the standard notation.
+
+<Button label="Click" @click="handleClick($event)"/>
+
+
+ Severity
+ Different color options are available as severity levels.
+
+
+ - .p-button-secondary
+ - .p-button-success
+ - .p-button-info
+ - .p-button-warning
+ - .p-button-danger
+
+
+
+<Button label="Primary" />
+<Button label="Secondary" class="p-button-secondary" />
+<Button label="Success" class="p-button-success" />
+<Button label="Info" class="p-button-info" />
+<Button label="Warning" class="p-button-warning" />
+<Button label="Danger" class="p-button-danger" />
+
+
+ Raised and Rounded Buttons
+ A button can be raised by having "p-button-raised" style class and similarly borders can be made rounded using "p-button-rounded" class.
+
+<Button label="Primary" class="p-button-raised p-button-rounded" />
+
+
+ Properties
+
+
+
+
+ Name |
+ Type |
+ Default |
+ Description |
+
+
+
+
+ label |
+ string |
+ null |
+ Text of the button. |
+
+
+ icon |
+ string |
+ null |
+ Name of the icon. |
+
+
+ iconPos |
+ string |
+ left |
+ Position of the icon, valid values are "left" and "right". |
+
+
+
+
+
+ Styling
+ Following is the list of structural style classes, for theming classes visit theming page.
+
+
+
+
+ Name |
+ Element |
+
+
+
+
+ p-button |
+ Button element |
+
+
+ p-button-icon |
+ Icon element |
+
+
+ p-button-text |
+ Label element of the button |
+
+
+
+
+
+ Dependencies
+ None.
+
+
+
+
+ View on GitHub
+
+
+
+<template>
+ <div>
+ <div class="content-section introduction">
+ <div class="feature-intro">
+ <h1>Button</h1>
+ <p>Button is an extension to standard button element with icons and theming.</p>
+ </div>
+ </div>
+
+ <div class="content-section implementation">
+ <h3 class="first">Basic</h3>
+ <Button label="Click" />
+ <Button label="Click" icon="pi pi-check" />
+ <Button label="Click" icon="pi pi-check" iconPos="right" />
+ <Button icon="pi pi-check" />
+ <Button label="Click" disabled="disabled" />
+
+ <h3>Severities</h3>
+ <Button label="Primary" />
+ <Button label="Secondary" class="p-button-secondary" />
+ <Button label="Success" class="p-button-success" />
+ <Button label="Info" class="p-button-info" />
+ <Button label="Warning" class="p-button-warning" />
+ <Button label="Danger" class="p-button-danger" />
+
+ <h3>Raised Buttons</h3>
+ <Button label="Primary" class="p-button-raised" />
+ <Button label="Secondary" class="p-button-raised p-button-secondary" />
+ <Button label="Success" class="p-button-raised p-button-success" />
+ <Button label="Info" class="p-button-raised p-button-info" />
+ <Button label="Warning" class="p-button-raised p-button-warning" />
+ <Button label="Danger" class="p-button-raised p-button-danger" />
+
+ <h3>Rounded Buttons</h3>
+ <Button label="Primary" class="p-button-rounded" />
+ <Button label="Secondary" class="p-button-rounded p-button-secondary" />
+ <Button label="Success" class="p-button-rounded p-button-success" />
+ <Button label="Info" class="p-button-rounded p-button-info" />
+ <Button label="Warning" class="p-button-rounded p-button-warning" />
+ <Button label="Danger" class="p-button-rounded p-button-danger" />
+ </div>
+ </div>
+</template>
+
+
+
+
+button {
+ margin-right: .5em;
+}
+
+
+
+
+
\ No newline at end of file