Open extra topbar

Click on button

If you are new here, please see some information on how to ask for support. Thank you!

Click on button

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8224
    bigblue
    Participant

    Alex, 

    Regarding the button, how can I do to let the form open by default? so if I click it closes the form.

    The button it is not necessary in almost of cases, and it adds some friction to user experience (many clicks).

    Thank you in advance

    Best regards

    • This topic was modified 4 weeks ago by alexg. Reason: spelling in title
    #8229
    alexg
    Keymaster

    Hello,

    Thank you. The button was a user request. The rationale is that most users would not use the UI so it would not take up space. Now that pagination is introduced, this is less of an issue but is still a point to consider.

    In the general case, a theme can show many full articles in one page (think one-page themes for example). As the UI reuses observables, only one UI can be open at any one time. Therefore, in the general case, the button, when clicked, closes all other similar UIs and then opens its own UI.

    For this reason, I cannot provide an option on whether you want all UIs to initialize as open. The best I can do is add an option which, when checked, would open the first tipping UI on the page. In the next release I will add an option that does this when enabled:

    jQuery( 'body' ).on( 'wallets_ready', function( ) {
    	jQuery('.wallets-tips-outer:first button.toggle').click();
    } );

    The effect is that the first tipping UI (usually the only one), will be opened when the page loads. I will add this into the next patch release.

    with regards

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.