Change scrollbar width - FileExplorer
Hello!
I would like to change the scrollbar width in File Explorer control Angular JS1
Is it possible somehow? Through css or code?
- I tried by CSS but it look the control will reset it automatically the style due responsive checks
- I tried by code also with no success:
Can you help me with that ?
These attemps below did not work for me.
...
@ViewChild('fexplorer', { static: true }) fexplorer: any;
...
ngOnInit() {
this.fexplorer.widget._scrollerSize = 16;
}
..
ngAfterViewInit() {
...
this.fexplorer.widget._scrollerSize = 16;
...
}
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
MK
Muthukrishnan Kandasamy
Syncfusion Team
January 25, 2021 10:30 AM UTC
Hi Ivan,
Thanks for contacting Syncfusion support.
We have validated your requirement in EJ FileExplorer component. Based on the provided details, we suspect that your requirement is to change the vertical scrollbar of the FileExplorer. We can achieve your requirement by dynamically updating the scroller size through its instance. Please refer to the below code block.
|
export class AppComponent {
@ViewChild('file') fileObj: EJComponents<any, any>;
ngAfterViewInit(){
// for grid view
if(this.fileObj.widget._gridObj){
this.fileObj.widget._gridObj._scrollObject.setModel({ scrollerSize: 16 });
}
// for tile view
if(this.fileObj.widget._tileScroll) {
this.fileObj.widget._tileScroll.setModel({ scrollerSize: 16 });
}
}
constructor() {
};
}
|
If we misunderstood your requirement, please share us some additional details. It will be help us to provide you the prompt solution.
1. Share us the exact requirement with File Explorer control.
2. Share the screenshot of the requirement.
3. Share us the screen recorded video of your requirement.
Please let us know, if you need any further assistance.
Regards,
Muthukrishnan K
Marked as answer
IM
iMarrero
January 25, 2021 07:10 PM UTC
Your support is awesome.
Everything worked as expected, and you gave me even more useful information.
Thank you very much.
Ivan
MK
Muthukrishnan Kandasamy
Syncfusion Team
January 28, 2021 04:48 AM UTC
Hi Ivan,
Thanks for your update.
We are glad to know that given solution works. Please let us know if you need any further assistance.
Regards,
Muthukrishnan K
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
- Marked answer
-
IM iMarrero
- Jan 23, 2021 08:54 AM UTC
- Jan 28, 2021 04:48 AM UTC