From 21352be22f08f0b5ac1bedd99778d876cef1b772 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 12 Aug 2021 15:26:34 +0200 Subject: [PATCH] Up device docs --- src/device_manager/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/device_manager/index.js b/src/device_manager/index.js index 4684ce1b7..6e773ca3f 100644 --- a/src/device_manager/index.js +++ b/src/device_manager/index.js @@ -85,17 +85,18 @@ export default () => { * @param {Object} props Device properties * @returns {[Device]} Added device * @example - * deviceManager.add({ + * const device1 = deviceManager.add({ * // Without an explicit ID, the `name` will be taken. In case of missing `name`, a random ID will be created. * id: 'tablet', * name: 'Tablet', * width: '900px', // This width will be applied on the canvas frame and for the CSS media * }); - * deviceManager.add({ + * const device2 = deviceManager.add({ * id: 'tablet2', * name: 'Tablet 2', * width: '800px', // This width will be applied on the canvas frame * widthMedia: '810px', // This width that will be used for the CSS media + * height: '600px', // Height will be applied on the canvas frame * }); */ add(props, options = {}) {