Expand Widget open by default?

823
3
Jump to solution
11-28-2017 01:34 PM
deleted-user-OlpHy1NoMNug
Occasional Contributor II

In JS 4.5, is it possible to have the Expand Widget open by default?

Scott

0 Kudos
1 Solution

Accepted Solutions
ThomasSolow
Occasional Contributor III

You can pass "expanded: true" into the widget's constructor, ie:

var expand = new Expand({
  expanded: true,
  ...
});

View solution in original post

3 Replies
ThomasSolow
Occasional Contributor III

You can pass "expanded: true" into the widget's constructor, ie:

var expand = new Expand({
  expanded: true,
  ...
});
deleted-user-OlpHy1NoMNug
Occasional Contributor II

Yep, precisely what I needed.  Not sure how I missed this, thanks.

Scott

0 Kudos
RezaDadrezaei
New Contributor

By doing this, the Expand widget will stay open all the time and won't be closed anymore.

0 Kudos