Sidebar callback not work!why?


#1

This is my semantic sidebar javascript as below:
$(document).ready(function() {
$(’.page-container .bottom.segment .ui.sidebar’).sidebar({
context: $(’.page-container .bottom.segment’),
dimPage: false,
closable: false
},{
onChange: function() {
console.log(‘on hidden’);
}
})
.sidebar(‘attach events’, ‘.page-container .ui.menu .item .list.icon’)
;
})
It dones’t work! There is not any console alert…Why?