template
GoldenElvis
Bases: object
Adaptation of Leon van Kouwen's elvis layout system https://github.com/LeonvanKouwen/elvis
Generates a jinja GoldenLayout Template based on panel's default GoldenLayout Template. This modification features a fixed sidebar with a main layout part which can be customized with columns/rows/stacks
Source code in pyhdx/web/template.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
|
column(*args, **kwargs)
Vertically aligned panels
Source code in pyhdx/web/template.py
164 165 166 |
|
compose(golden_layout_string, **kwargs)
Creates a servable template from a golden layout js code string. :param main_controller: Application main controller :param golden_layout_string: Result of nesting stacks, columns, rows, and panels using the methods in this class.
Source code in pyhdx/web/template.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
row(*args, **kwargs)
Horizontally aligned panels
Source code in pyhdx/web/template.py
168 169 170 |
|
stack(*args, **kwargs)
Adds a 'tab' element.
Source code in pyhdx/web/template.py
160 161 162 |
|
view(view, title=None, width=None, height=None, scrollable=True)
Adds a viewable panel. :param view: The panel to show in this golden layout sub section. :param title: The text to show at the top of the panel. :param width: Initial width. :param height: Initial height.
Source code in pyhdx/web/template.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
|
ReadString
Bases: str
Extends the string
class such that it can be used to monkey-patch the _template class attribute of GoldenTemplate
Source code in pyhdx/web/template.py
20 21 22 23 24 25 26 |
|