javascript - JSTree Proton theme Change icon to folder open and close -


i have 1 demo application in jstree proton theme used.

i want change icon when node open folder open , when node closed folder closed.

same following. proton cms admin panel

check documentation node in there changes icon folder open , closed.

now when trying change icon found using css sprites , when checked style.css found using base64 url load images.

enter image description here

here sprites has used.

how can use directory open , close icon in node?

what names or css class use icon?

when having sprite how can find icon name , load it?

apart want use filled square leaf node icon.

i able render image using following sprite code.

.jstree-folder-open { background: url('32px.png') no-repeat -531px -23px !important; } 

but still unable display icon in correct size , correct way. there particular way?

finally able render image changing background position in css.

here tool found css code render image sprite.

sprite cow

open image , select portion.

after created seperate class , used background-position css.

.jstree-folder-open { background-image: url('32px.png') !important; background-position: -105px -70px !important; }  .jstree-folder-closed { background-image: url('32px.png') !important; background-position: -261px -7px !important; }  li.jstree-leaf > > i.jstree-icon { background-image: url('32px.png') !important; background-position: -200px -7px !important; } 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -