Custom widget - Get device list

Custom widget - Get device list

Dear Team, 
Is there a way to get the device list in custom widgets, please? 

Such as we do in analysis using account.devices.list(), for example;

Thank you!