GeoJqv Module

class epyk.core.html.geo.GeoJqv.JqueryVectorMap(page, width, height, html_code: Optional[str], options, profile: Optional[Union[bool, dict]])
click(js_funcs: Union[List[Union[str, JsDataModel]], str], profile: Optional[Union[bool, dict]] = None, source_event: Optional[str] = None, on_ready: bool = False)

The onclick event occurs when the user clicks on an element. This function will receive the region, code and element. The common data variable is mapped to the region.

Related Pages:

Parameters:
  • js_funcs – A Javascript Python function

  • profile – Optional. Set to true to get the profile for the function on the Javascript console

  • source_event – Optional. The source target for the event

  • on_ready – Boolean. Specify if the event needs to be trigger when the page is loaded

drag(js_funcs: Union[List[Union[str, JsDataModel]], str], profile: Optional[Union[bool, dict]] = None, source_event: Optional[str] = None, on_ready: bool = False)
Parameters:
  • js_funcs – A Javascript Python function

  • profile – Set to true to get the profile for the function on the Javascript console

  • source_event – The source target for the event

  • on_ready – Specify if the event needs to be trigger when the page is loaded

property js: JQVMap

Javascript base function.

Return all the Javascript functions defined in the framework. THis is an entry point to the full Javascript ecosystem.

Returns:

A Javascript object.

property options: OptionsJqVM

Property to the component options. Options can either impact the Python side or the Javascript builder.

Python can pass some options to the JavaScript layer.