HtmlPopup Module

class epyk.core.html.HtmlPopup.Popup(page: PageModel, components: List[Html], width: tuple, height: tuple, options: Optional[dict], profile: Optional[Union[bool, dict]])
add(component: Html)

Add a component to the popup.

If this is a list then they will be added in a row.

Parameters:

component – The component to be added to the underlying list

add_title(text: str, align: str = 'center', level: Optional[int] = 5, css: Optional[dict] = None, position: str = 'before', options: Optional[dict] = None)

Add a title to the popup.

Parameters:
  • text – The value to be displayed to the component

  • align – Optional. The text-align property within this component

  • level – Optional.

  • css – Optional. The CSS attributes to be added to the HTML component

  • position – Optional. The position compared to the main component tag

  • options – Specific Python options available for this component

extend(components: List[Html])

Append list of component to the popup.

Parameters:

components – The component to be added to the underlying list

insert(n: int, component: Html)

Insert a component to the popup at a specific place.

Parameters:
  • n – The position in the popup

  • component – The component to be added to the underlying list

property js: JsHtmlPopup

Specific JavaScript features for the popup component.

Returns:

A Javascript object

property options: OptionPopup

Property to set all the possible object for a button.