Implement Tabber in Blox

Comments

3 comments

  • Avatar
    Anu Marichamy

    Hi Nathan,

    I'm in need to show the other widget details in the same blox widget using click button. ex: having sales details in blox when i click on button(next widget) sales details should be hidden where i should see quantity details. can you please guide me to work it out

     

    Thanks in Advance,

    Anu

    0
    Comment actions Permalink
  • Avatar
    Nathan Giusti

    Anu Marichamy

     

    You can use the tabber to show and hide groups of widgets

     

    const brand_id = 'widget[widgetid="5f87359026e1201818bf48bb"]'
    const brand_id2 = 'widget[widgetid="5f87359026e1201818bf48bc"]'
    const category_id = 'widget[widgetid="5f87359626e1201818bf48bf"]'
    const category_id2 = 'widget[widgetid="5f87359626e1201818bf48be"]'
    const age_id = 'widget[widgetid="5f8735cb26e1201818bf48c3"]'
    const age_id2 = 'widget[widgetid="5f8735cb26e1201818bf48c4"]'


    if (value == 'Brand') {
      $(brand_id).show()
      $(brand_id2).show()
      $(category_id).hide()
      $(category_id2).hide()
      $(age_id).hide()
      $(age_id2).hide()
    } else if (value == 'Category') {
      $(brand_id).hide()
      $(brand_id2).hide()
      $(category_id).show()
      $(category_id2).show()
      $(age_id).hide()
      $(age_id2).hide()
    } else {
      $(brand_id).hide()
      $(brand_id2).hide()
      $(category_id).hide()
      $(category_id2).hide()
      $(age_id).show()
      $(age_id2).show()
    }

    0
    Comment actions Permalink
  • Avatar
    Anu Marichamy

    Hi Nathan,

    Thanks for Your reply. I tried using the script you mentioned above which is working excellent. 

     

    Thanks,

    Anu

    0
    Comment actions Permalink

Please sign in to leave a comment.