Sliders Interface
- class epyk.interfaces.components.CompSliders.Sliders(ui)
This module is relying on some Jquery IU components
The slider and progress bar components can be fully described on the corresponding website
As this module will return those object, all the properties and changes defined in the documentation can be done.
- date(value=None, minimum: Optional[float] = None, maximum: Optional[float] = None, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (20, 'px'), html_code: Optional[str] = None, helper: Optional[str] = None, options: Optional[Union[bool, dict]] = None, profile: Optional[Union[bool, dict]] = None)
Usage:
Underlying HTML Objects:
- Parameters:
value – Optional. The initial value
minimum – Optional. The min value
maximum – Optional. The max value
width – Optional. A tuple with the integer for the component width and its unit
height – Optional. A tuple with the integer for the component height and its unit
html_code – Optional. An identifier for this component (on both Python and Javascript side)
helper – Optional. A tooltip helper
profile – Optional. A flag to set the component performance storage
options – Optional. Specific Python options available for this component
- date_range(value1: Optional[str] = None, value2: Optional[str] = None, minimum: Optional[float] = None, maximum: Optional[float] = None, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (20, 'px'), html_code: Optional[str] = None, helper: Optional[str] = None, options: Optional[Union[bool, dict]] = None, profile: Optional[Union[bool, dict]] = None)
Usage:
Underlying HTML Objects:
- Parameters:
value1 – Optional. The initial min value
value2 – Optional. The initial max value
minimum – Optional. The min value
maximum – Optional. The max value
width – Optional. A tuple with the integer for the component width and its unit
height – Optional. A tuple with the integer for the component height and its unit
html_code – Optional. An identifier for this component (on both Python and Javascript side)
helper – Optional. A tooltip helper
profile – Optional. A flag to set the component performance storage
options – Optional. Specific Python options available for this component
- lower(value=None, minimum: float = 0, maximum: float = 100, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (20, 'px'), html_code: Optional[str] = None, helper: Optional[str] = None, options: Optional[Union[bool, dict]] = None, profile: Optional[Union[bool, dict]] = None)
Usage:
Underlying HTML Objects:
- Parameters:
value – Optional. The initial value
minimum – Optional. The min value. Default 0
maximum – Optional. The max value. Default 100
width – Optional. A tuple with the integer for the component width and its unit
height – Optional. A tuple with the integer for the component height and its unit
html_code – Optional. An identifier for this component (on both Python and Javascript side)
helper – Optional. A tooltip helper
profile – Optional. A flag to set the component performance storage
options – Optional. Specific Python options available for this component
- progress(number: float = 0, total: float = 100, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (20, 'px'), html_code: Optional[str] = None, helper: Optional[str] = None, options: Optional[Union[bool, dict]] = None, profile: Optional[Union[bool, dict]] = None)
Usage:
:param number: Optional. The initial value :param total: Optional. The total value :param width: Optional. A tuple with the integer for the component width and its unit :param height: Optional. A tuple with the integer for the component height and its unit :param html_code: Optional. An identifier for this component (on both Python and Javascript side) :param helper: Optional. A tooltip helper :param profile: Optional. A flag to set the component performance storage :param options: Optional. Specific Python options available for this component
- progressbar(number: float = 0, total: float = 100, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (20, 'px'), html_code: Optional[str] = None, helper: Optional[str] = None, options: Optional[Union[bool, dict]] = None, profile: Optional[Union[bool, dict]] = None)
Add a progress bar component to the page
Usage:
page.ui.sliders.progressbar(300)
Underlying HTML Objects:
Related Pages:
- Parameters:
number – Optional. The initial value
total – Optional. The total value
width – Optional. A tuple with the integer for the component width and its unit
height – Optional. A tuple with the integer for the component height and its unit
html_code – Optional. An identifier for this component (on both Python and Javascript side)
helper – Optional. A tooltip helper
profile – Optional. A flag to set the component performance storage
options – Optional. Specific Python options available for this component
- range(values=None, minimum: float = 0, maximum: float = 100, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (20, 'px'), html_code: Optional[str] = None, helper: Optional[str] = None, options: Optional[Union[bool, dict]] = None, profile: Optional[Union[bool, dict]] = None)
Usage:
Underlying HTML Objects:
- Parameters:
values – Optional. The initial values
minimum – Optional. The min value. Default 0
maximum – Optional. The max value. Default 100
width – Optional. A tuple with the integer for the component width and its unit
height – Optional. A tuple with the integer for the component height and its unit
html_code – Optional. An identifier for this component (on both Python and Javascript side)
helper – Optional. A tooltip helper
profile – Optional. A flag to set the component performance storage
options – Optional. Specific Python options available for this component
- slider(number: float = 0, minimum: float = 0, maximum: float = 100, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (None, 'px'), html_code: Optional[str] = None, helper: Optional[str] = None, options: Optional[Union[bool, dict]] = None, profile: Optional[Union[bool, dict]] = None) Slider
Add a Jquery UI slider object to the page
Usage:
page.ui.slider(40) page.ui.slider([1, 2, 3, 4, 5, 6, 7]) # With even and circle progress text = page.ui.pyk.progress.circle() s = page.ui.slider(54) page.ui.row([text, s]) s.output = text s.options.slide()
Underlying HTML Objects:
Related Pages:
- Parameters:
number – Optional. The initial value
minimum – Optional. The min value. Default 0
maximum – Optional. The max value. Default 100
width – Optional. A tuple with the integer for the component width and its unit
height – Optional. A tuple with the integer for the component height and its unit
html_code – Optional. An identifier for this component (on both Python and Javascript side)
helper – Optional. A tooltip helper
profile – Optional. A flag to set the component performance storage
options – Optional. Specific Python options available for this component
- upper(value=None, minimum: float = 0, maximum: float = 100, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (20, 'px'), html_code: Optional[str] = None, helper: Optional[str] = None, options: Optional[Union[bool, dict]] = None, profile: Optional[Union[bool, dict]] = None)
Usage:
Underlying HTML Objects:
- Parameters:
value – Optional. The initial value
minimum – Optional. The min value. Default 0
maximum – Optional. The max value. Default 100
width – Optional. A tuple with the integer for the component width and its unit
height – Optional. A tuple with the integer for the component height and its unit
html_code – Optional. An identifier for this component (on both Python and Javascript side)
helper – Optional. A tooltip helper
profile – Optional. A flag to set the component performance storage
options – Optional. Specific Python options available for this component