Select to view content in your preferred language

Expand Widget open by default?

1147
3
Jump to solution
11-28-2017 01:34 PM
deleted-user-OlpHy1NoMNug
Deactivated User

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

Scott

0 Kudos
1 Solution

Accepted Solutions
ThomasSolow
Frequent Contributor

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
Frequent Contributor

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

var expand = new Expand({
  expanded: true,
  ...
});
deleted-user-OlpHy1NoMNug
Deactivated User

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