QiTASC / hatchinq / Hatchinq.SidePanel

Exposed


type alias Config msg =
{ theme : Hatchinq.Theme.Theme
, lift : State -> msg
, orientation : SidePanelOrientation
, resizeMaxWidth : Maybe Basics.Int
, initialWidth : Basics.Int 
}


type SidePanelOrientation
    = LeftHand
    | RightHand


type alias State =
{ openedContainerId : Basics.Int
, containerWidth : Basics.Int
, containerWidths : Dict Basics.Int Basics.Int
, beingDragged : Basics.Bool
, windowSize : WindowSize 
}


type alias View msg =
{ buttons : List (SidePanelButton msg)
, state : State
, topPageOffset : Basics.Int 
}

configure : Config msg -> List (Hatchinq.Attribute.Attribute InternalConfig) -> View msg -> Element msg

init : Basics.Int -> Config msg -> ( State, Platform.Cmd.Cmd msg )

minWidth : Basics.Int -> Hatchinq.Attribute.Attribute InternalConfig

subscriptions : Config msg -> State -> Platform.Sub.Sub msg