Giter Site home page Giter Site logo

securetabs-2.0's Introduction

SecureTabs-2.0 ๐Ÿ“‘

Patreon Paypal Discord

Adds functional blizzard looking tabs to secure panels without causing taint.

๐Ÿ’ก Note that it is not possible to hide the original content of the panel without causing taint. As such, you should create a frame that covers the original content. When your tab is selected, your frame will be shown and the end result will be the same.

Usage Example

This code adds a tab to the MerchantFrame, which manages displaying a custom MyFrame whenever the tab is selected:

local tab = LibStub('SecureTabs-2.0'):Add(MerchantFrame)
tab:SetText('My Tab Title')
tab.frame = MyFrame

tab.OnSelect = function()
  print('Tab was clicked!')
end

tab.OnDeselect = function()
  print('A different tab was clicked!')
end

MyFrame is optional. You can manage behaviour yourself using .OnSelect and OnDeselect. Just make sure to not cause taint if you do.

โš ๏ธ Reminder!

If you use this library, please list it as one of your dependencies in the CurseForge admin system. It's a big help! ๐Ÿ‘

securetabs-2.0's People

Contributors

jaliborc avatar christopheml avatar

Stargazers

Lucas Vienna avatar  avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.