1.0.3 • Published 3 years ago

small-icon-menu v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

small-icon-menu

tiny icon menu based on material icons and vue mainly created for side crud buttons menu in lists or tree views.

Props

PropTypeRequiredDefaultDescription
iconsarrayfalse'add', 'delete', 'edit'Any icon from material icon library
labelsobjectfalse{'add' : 'Add', 'delete' : 'Delete', 'edit' : 'Edit' }key icon name, value label
iconSizestringfalse'16px'Size of icons
heightstringfalse'auto'Height of menu
widthstringfalse'auto'Width of menu
absolutebooleanfalsefalseAbsolute position menu
topstringfalse'0px'Position menu from top
leftstringfalse'0px'Position menu form left
borderbooleanfalsefalseBorder on/off
columnbooleanfalsefalseColumn orientation of icons

Installation

Install the package from npm by running:

$ npm i small-icon-menu

Usage

Import, register and place the component in your Vue app. Don't forget to include the material icons css "https://fonts.googleapis.com/icon?family=Material+Icons"

<template>
  <smalliconmenu :icons="['add', 'delete', 'edit]" @add="emits add event" @delete="emits delete event" @edit="emits edit event"/>
</template>
import smalliconmenu from 'smalliconmenu'

export default {
  components: {
    smalliconmenu
  },
}
1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago