w2sidebar.img

Default node image.
String, default = ''
For any node if its img property is not defined, then default img will be used. The img property is a css class for the image div. See .nodes to see how to use img for nodes. There are several default icons in w2ui.css file you can use or you can create your own css file with icons. Majority of default icons are used in w2grid. Default icons are:
  • icon-folder
  • icon-page
  • icon-reload
  • icon-columns
  • icon-search
  • icon-add
  • icon-delete
  • icon-save
  • icon-edit
  • icon-bullet-black
The difference between img and icon is that img uses a div and a background image. The icon property uses a span and icon fonts, such as font-awesome.
You can define it during object creation: Or any time after the object has been created:

User Comments

comments powered by Disqus