Module licenseware.report_components.style_attributes

Here are report components css style properties. Styles set will determine how the component will look on page.

Usage:

from …report_components.style_attributes import styles

Expand source code
"""

Here are report components css style properties.
Styles set will determine how the component will look on page.


Usage:

from ...report_components.style_attributes import styles



"""

from dataclasses import dataclass, field

@dataclass
class Styles:
    WIDTH_ONE_THIRD:dict = field(default_factory=lambda:{'width': '1/3'}) 
    WIDTH_TWO_THIRD:dict = field(default_factory=lambda:{'width': '2/3'})
    WIDTH_FULL:dict = field(default_factory=lambda:{'width': 'full'})
    WIDTH_HALF:dict = field(default_factory=lambda:{'width': '1/2'})
    
        
styles = Styles() # default_factory needs instantiation

Classes

class Styles (WIDTH_ONE_THIRD: dict = <factory>, WIDTH_TWO_THIRD: dict = <factory>, WIDTH_FULL: dict = <factory>, WIDTH_HALF: dict = <factory>)

Styles(WIDTH_ONE_THIRD: dict = , WIDTH_TWO_THIRD: dict = , WIDTH_FULL: dict = , WIDTH_HALF: dict = )

Expand source code
class Styles:
    WIDTH_ONE_THIRD:dict = field(default_factory=lambda:{'width': '1/3'}) 
    WIDTH_TWO_THIRD:dict = field(default_factory=lambda:{'width': '2/3'})
    WIDTH_FULL:dict = field(default_factory=lambda:{'width': 'full'})
    WIDTH_HALF:dict = field(default_factory=lambda:{'width': '1/2'})

Class variables

var WIDTH_FULL : dict
var WIDTH_HALF : dict
var WIDTH_ONE_THIRD : dict
var WIDTH_TWO_THIRD : dict