# Options Grid/List View on Component View Meeting web SDK

**URL:** <https://devforum.zoom.us/t/options-grid-list-view-on-component-view-meeting-web-sdk/80745>\
**Category:** Web\
**Created:** [December 26, 2022, 1:38am UTC](https://devforum.zoom.us/t/options-grid-list-view-on-component-view-meeting-web-sdk/80745 "2022-12-26T01:38:54Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [February 3, 2023, 12:10pm UTC](https://devforum.zoom.us/t/options-grid-list-view-on-component-view-meeting-web-sdk/80745/17 "2023-02-03T12:10:44Z")

</div>

@tuanthinhit Hi,

There is no API to switch Layouts but here is my trick

```auto
 client.on('connection-change', (e) => {
                    if (e.state == 'Connected') {
                        return new Promise((resolve, reject) => {
                            let ribbon = document.querySelector('button[title="Ribbon"]');

                            if (ribbon) {
                                ribbon.click();
                                console.log('-- switching to speak view --');

                                return resolve(true);
                            }

                            return reject(true);
                        }).then((r) => {
                            var xpath = "//span[text()='Active']";
                            var speakView = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);

                            if (speakView && speakView.singleNodeValue) {
                                speakView.singleNodeValue.click();
                            }
                        }).catch((error) => {
                            console.log('--- error when switching to speak view --> ', error);
                        });
                    }
                });

```

If any query still please ask. Thanks

---

_[View the full topic](https://devforum.zoom.us/t/options-grid-list-view-on-component-view-meeting-web-sdk/80745)._
