Buttons
- <va-button
- outline
- color="success"
- icon="brandico brandico-facebook"
- >
- Button 1
- </va-button>
- <va-button
- flat large
- color="info"
- icon="brandico brandico-facebook"
- icon-right="iconicstroke iconicstroke-info"
- >
- Button 2
- </va-button>
- <va-button
- small color="warning"
- icon-right="iconicstroke iconicstroke-info"
- href="http://epic-spinners.epicmax.co/"
- >
- Button 3
- </va-button>
- <va-button outline small icon="ion-md-close ion"/>
Props
tag
- String (default: 'button') - use this property to set the tag of element, which behaviour is more suitable for your button.outline
- Boolean - usev-bind:outline="true"
to set outline type of buttonflat
- Boolean - usev-bind:flat="true"
to set flat type of buttoncolor
- String (default: 'success') - use this property to set the color of the button. We can choose one color from a set of theme colors (primary, secondary, info, error, warning)small
- Boolean - usev-bind:small="true"
to set small size of modallarge
- Boolean - usev-bind:large="true"
to set large size of modalicon
- Boolean - usev-bind:icon="true"
to set icon from the left side of the buttoniconRight
- Boolean - usev-bind:iconRight="true"
to set icon from the right side of the buttontype
- String - native attribute for buttonhref
- String - native attribute for a-link buttontarget
- String - native attribute for a-link buttonto
- String - native attribute for router-linkreplace
- Boolean - native attribute for router-link buttonappend
- Boolean - native attribute for router-link buttonto
- String | Object - native attribute for router-link buttonexact
- Boolean - native attribute for router-link buttonexactActiveClass
- String - native attribute for router-link button
References
- Router-link: https://router.vuejs.org/api/
Button groups
This component is used to group set of buttons. Buttons in this case save their pre-defined behaviour.
- <va-button-group>
- <va-button color="danger" icon="maki maki-art-gallery"> First </va-button>
- <va-button color="danger"> Second </va-button>
- <va-button color="danger"> Third </va-button>
- </va-button-group>
- <va-button-group>
- <va-button color="dark"> One </va-button>
- <va-button color="dark"> Two </va-button>
- <va-button color="dark"> Three </va-button>
- <va-button color="dark" icon="ion-ios-arrow-down arrow-down"/>
- </va-button-group>
Used without any props. Buttons are inserted in default slot.
Button toggles
This component is used as an alternative for radio-button.
- <va-button-toggle
- v-model="model"
- options="options"
- toggle-color="warning"/>
- export default {
- data () {
- return {
- options: [
- { label: 'One', value: 'one' },
- { label: 'Two', value: 'two' },
- { label: 'Three', value: 'three' }
- ],
- model: 'two'
- }
- }
- }
Props
options
- Array. Contains objects with value and label properties. Button entities will be created according to this array.value
- String. Value of active button in button toggle component.toggle-color
- String. Set color of active button in button toggle component. Toggle colors variety is the same as variety of colors for buttons.outline
- Boolean.flat
- Boolean.disabled
- Boolean.color
- String.small
- Boolean.large
- Boolean.
Pagination
This component is used to separate data, what helps user to receive information easier. Integrated in tables and lists.
- <va-pagination
- small
- :pages="10"
- color="success"
- v-model="activePage"
- />
- <va-pagination
- :pages="10"
- :visible-pages="3"
- :icon="{ direction: 'fa fa-volume-off' }"
- :boundary-links="false"
- v-model="activePage"
- />
- export default {
- data () {
- return {
- activePage: 2
- }
- }
- }
Props
value
- Number - value of active button in pagination component.length
- Number (default: 5) - amount of buttons (instead of navigation buttons) that are shown in the component at one moment.totalPages
- Number - amount of all pages. If it is not specified, it is equal to length value.disabled
- Boolean.small
- Boolean.large
- Boolean.color
- String (default: 'info').boundaryLinks
- Boolean - shows boundary ('>>', '<<') icons.directionLinks
- Boolean - shows direction ('>', '<') icons.icon
- Object (default: { direction: 'fa fa-angle-left', boundary: 'fa fa-angle-double-left' }) - change left icons. Values of object properties are icon classes.iconRight
- Object (default: { direction: 'fa fa-angle-right', boundary: 'fa fa-angle-double-right' }) - change right icons. Values of object properties are icon classes.
Find DEMOs here!