Driver

Sample

 "measures":{
    "drive":{
      "name":"drive1",
      "title":"Drive",
     },
   }

download excample widget from here : https://www.deviantart.com/rainysoft/art/Drives-Line-762679228

Information

  • Measure Type: drive

  • Description: "drive" measure used to display all drives on your computer ,include USB drive when USB inserted

Propertys

isAllDrive

Whether to automatically detect all drives. users can change it by settings. default value is "true".

drives

if "isAllDrive" is false, drive measure will only detect the drives that include "drives", for example this code will only detect the drives of "C,E,H"

items

all the drives that detected are in items,every item include these data tags:

e.g. List all the drives volume on your computer: <li v-for="item in drive1.items"> {{ item.volume }} </li>

e.g. Click to open the drive item with item.open : <li v-for="item in drive1.items" v-bind:onclick="item.open" > {{ item.volume }} </li>

e.g. Click to eject the drive item with item.eject if the drive is USB or CDROM: <li v-for="item in drive1.items" v-bind:onclick="item.eject" > {{ item.volume }} </li>

Other data tags

e.g. display the total space size of all the disk drives on your computer <div id="widget">{{ drive1.allTotal }} </div>

Last updated