khufu.addons.popover module

popover(tooltip=False, placement=False, trigger=False, title=False, content=False, delay=200, after=False)[source]

popover to provide helper text or some secondary info about an element

Key Arguments

  • tooltip – use tooltip instead of popover

  • placement – direction popover expands into [ top | bottom | left | right ]

  • trigger – the trigger for the popover [ False | click | hover | focus | manual ]

  • title – the popover title

  • content – the popover content

  • delay – delay in ms

  • after – place the div required by the

Return

  • popover - the popover helper text to be added to an element

    Todo

    • [ ] when complete, clean popover function

    • [ ] when complete add logging

    • [ ] when complete, decide whether to abstract function to another module