Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

themes.dots doesn't work #251

Closed
synac opened this issue Aug 14, 2012 · 3 comments
Closed

themes.dots doesn't work #251

synac opened this issue Aug 14, 2012 · 3 comments

Comments

@synac
Copy link

synac commented Aug 14, 2012

With the current version the dots as well as the icons themes properties doesn't work. The code is as following:

$(document).ready(function() {
$('#syn-treenav01').jstree({
'themes' : {
'theme' : 'default',
'dots' : false,
'icons' : false
},
'plugins' : [ 'themes', 'html_data' ]
});
});

With version 'jsTree 1.0-rc3' (downloaded file 'jstree_pre1.0_fix_1.zip') it worked.

@vakata vakata closed this as completed in bc08a1d Aug 19, 2012
@PetteriPertola
Copy link

The above does not work for me in jsTree 3.0. the dots and icons settings aren't applied:

$('#jsCategoryTree').jstree({
    'core' : {'multiple' : false, 'data' : treeData}, 
    'state' : { 'key' : 'jsCategoryTree', 'events' : 'activate_node.jstree'},
    'themes' : {'dots' : false, 'icons' : false},
    'plugins' : ['state','cookies','ui','html_data','themes'],
    'cookies' : { cookie_options : { path : '/' } }
});

If I bind on the "ready.jstree" event and call hide_icons, it works (see below). The problem is that for a millisecond you can see the folders and dots being loaded since they are being hidden post-render.

bind("ready.jstree", function (event, data) {
// Hides the folder icons on initial load of tree.
//$("#jsCategoryTree").jstree("hide_icons");
})

@vakata
Copy link
Owner

vakata commented Jul 24, 2014

Your config is wrong. v1 configs fo not work with 3.0 - please read the docs, or take a look at any example on the site (themes is not inside core).

@PetteriPertola
Copy link

Aah thanks I had not spotted that change from the old version. Works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants