shameer
February 12, 2015, 11:32am
1
Hi Experts,
I am using “webix accordion” but i want to use action like jquery “slidetoggle()”. Is it possible???
Please Help me on this?
Here is my sample code for Webix Accordian:-
webix.ui({
css: “leftPan”,
container: “panelLeft”,
view: “accordion”,
id: “leftPan”,
rows: [{
id: “shortcuts”,
header: “Shortcuts”,
height: 130,
body: treedata,
},{
id: “folders”,
header: “folders”,
height: 130,
body: treedata,
}]
});
maksim
February 12, 2015, 1:56pm
2
shameer
February 13, 2015, 7:40am
3
Thank you Maksim…Great Help…
one more thing, How can we set the auto height for accordion body/content.
Here is my sample code:-
webix.ui({
css:"smooth", cols: [{
header: "col 1",
width: 260,
body: {
type: "line",
view: "accordion",
rows: [{
header: "SHORTCUTS",
body: {
id: "ShortCutTree",
template:"ShortCutTree Content"
}
}, {
header: "FOLDERS",
body: {
id: "FolderTree",
template:"FolderTree Content"
}
}]
}
}]
});
Please help me on this…please
maksim
February 13, 2015, 9:04am
4
Please check
http://webix.com/snippet/3f124694
Adding autoheight property to accordion cells will force autoheight behavior
header: "SHORTCUTS",
body: {
id: "ShortCutTree",
template:"ShortCutTree Content",
autoheight:true
}
shameer
February 13, 2015, 2:45pm
5
Thanks you maksim…great job. I have layout which is having three panels those are “Left Panel”,“Mid Panel”,“Right Panel” Is it possible to get the auto scroll in two cases: 1) When height is increased on the accordion content.
2) When Folder name is larger than the left panel
Here is my sample code:-
webix.ui({
css:"smooth", cols: [{
header: "col 1",
width: 260,
body: {
type: "line",
view: "accordion",
css:"smooth1",
rows: [{
header: "SHORTCUTS",
body: {
id: "ShortCutTree",
template: dynamically added(Folder Tree)
}
}, {
header: "FOLDERS",
body: {
id: "FolderTree",
template: dynamically added (Folder Tree)
}
}]
}
}, {}]
});
<style>
.smooth .webix_accordionitem {
transition: width 0.5s;
}
.smooth1 .webix_accordionitem {
transition: height 0.5s;
}
.smooth > .webix_view > .webix_accordionitem_header{
z-index:4;
}
</style>
shameer
February 16, 2015, 7:09am
6
Hi Maksim,
Actually i need a scroll bar in accordion is it possible???. For example:-
view:“scrollview”, id:“verses”, scroll:“y”,
Please help me on this…Thank you
maksim
February 16, 2015, 12:16pm
7
You can include the scrollview in the top level accordion, and place the nested accordion in the scrollview
http://webix.com/snippet/cb9ce0f9
The only issue is that scroll always visible. You can enable custom scrolls to fix it.
http://webix.com/snippet/716bb5b6
shameer
February 16, 2015, 12:30pm
8
Thank you it works…Great help. But i am implementing the folder tree into accordion, So now i want horizontal scroll when folder name is increase.
Here is my sample code:-
webix.ui({
type: “clean”,
padding: 0,
responsive: true,
rows: [{
padding: 0,
borderless: true,
template: “Test”,
height: 30
}, {
id: “message-view”,
hidden: true,
height: 40,
template: ‘’
}, {
borderless: true,
template: ‘
’,
height: 55
}, {
type: “clean”,
view: “accordion”,
multi: true,
css: “smooth_hor”,
cols: [{
width: 0.1,
css: ‘toggleAccordionHeader’,
header: “FILTERS”,
id: “filterPanelHolder”,
body: {
template: ‘
’
}
}, {
header: “FOLDERS”,
id: “foldersPanel”,
css: ‘toggleAccordionHeader’,
on: {
“onItemClick”: function() {
HeliumPlus.mainLayout.Controller.resetLayout();
}
},
width: setLeftPanWid,
body: {
css: “smooth”,
type: “line”,
view: “accordion”,
rows: [{
header: “SHORTCUTS”,
height: 110,
body: {
template: ‘
’
}
}, {
header: 'firstaccordionheader',
css: "treeFolder",
body: {
template: '<div id="FolderTree"></div>'
}
}]
},
}
});
Please help me on this…
Maria
February 16, 2015, 1:42pm
9
Hi,
Could you please use http://webix.com/snippet/ tool to create a working demo ?
shameer
February 16, 2015, 3:41pm
10
Hi Maria,
Thanks for your quick reply, here is my demo link
http://webix.com/snippet/716bb5b6 (It is showing vertical scroll bar)
like wise i need to show the “horizontal scroll bar”, when content is exceeds.
Please Help me on this…Thank you.
Maria
February 17, 2015, 9:22am
11
Hi,
you demo does not require horizontal scroll. So, the issue is still not clear. However, “scroll” property of scrollable views can be “x” as well as “y”.
Try to set scroll: “x” for the view that should have horizontal scroll.
shameer
February 18, 2015, 10:39am
12
Hi,
I am implementing the folder tree on Accordion, My question is how to apply horizontal scroll when folder tree name is increased.
Please Help me on this… Thank you.
shameer
February 20, 2015, 10:12am
13
please find the below example . I need horizontal scroll when folder tree name is increased
http://webix.com/snippet/a7451a93
maksim
February 20, 2015, 2:04pm
14
It was expected that scroll:"x"
will enable desired behavior, but it doesn’t work. Fix will be available in next few days.
shameer
February 20, 2015, 4:08pm
15
Really Thank you for your quick response…maksim
shameer
February 24, 2015, 9:39am
16
Hi Makism,
I am waiting for you reply…please help me…Thank you
maksim
February 24, 2015, 11:30am
17
Fix will be available as part of next minor build ( probably in next two days )
If you have a support subscription and need the fix ASAP - please contact us at support@webix.com