reflex-dom-contrib-0.4.1: A playground for experimenting with infrastructure and common code for reflex applications

Safe HaskellNone
LanguageHaskell2010

Reflex.Dom.Contrib.Widgets.DynTabs

Description

An API for constructing a tab bar where the list of tabs in the bar is determined dynamically.

Synopsis

Documentation

class (Eq tab, Ord tab) => Tab m tab where Source

Methods

tabIndicator :: tab -> m () Source

tabBar Source

Arguments

:: (MonadWidget t m, Tab m tab) 
=> String 
-> tab

Initial open tab

-> [tab] 
-> Event t [tab]

Dynamic list of the displayed tabs

-> Event t tab

Event updating the currently selected tab

-> Dynamic t (Set tab)

Set containing tabs that are currently disabled

-> m (Dynamic t tab) 

tabPane :: (MonadWidget t m, Eq tab) => Dynamic t tab -> tab -> m a -> m a Source

activeHelper Source

Arguments

:: MonadWidget t m 
=> String 
-> m () 
-> Dynamic t Bool

Is selected

-> Dynamic t Bool

Is disabled

-> m (Event t ()) 

Sets the "active" class