com.alecdorrington.laminarcomponents.Toggle
Something that opens and closes, such as a menu or a popover, folded from every cause of either.
Attributes
- Graph
-
- Supertypes
-
class Object
trait Matchable
class Any
- Self type
-
Members list
Folds openings and closings into what is open: an opening's value while closed, and None after a second opening or any closing.
Folds openings and closings into what is open: an opening's value while closed, and None after a second opening or any closing.
Type parameters
- A
-
What an opening opens.
Value parameters
- closings
-
The closings.
- openings
-
The openings, each with what it opens.
Attributes
- Returns
-
What is open, if anything.
Folds flips and closings into whether something is open.
Folds flips and closings into whether something is open.
Value parameters
- closings
-
The closings.
- flips
-
The flips, each opening it if closed, else closing it.
Attributes
- Returns
-
Whether it is open.