def __init__(self, view, *widths): __View__.__init__(self, 'layout_col', view=view) self._widths = L() if len(widths) > 0: for width in widths: if instof(width, tuple): self._widths << width else: self._widths << ('lg', 12)
def __init__(self, *lines, **option): __View__.__init__(self, "ctst_area", lines=L(*lines), opts=M(), labels=L(), series=L(), anima=False) for l in self.lines: self.series << L() self._link = self.__create_link__(option["link"]) if "link" in option else "" self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option["title"] if "title" in option else "" if "height" in option: self.opts["height"] = str(option["height"]) + "px"
def __init__(self, **option): __View__.__init__(self, 'morr_donut', data=L()) self._link = self.__create_link__( option['link']) if 'link' in option else '' self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option[ 'title'] if 'title' in option else '' self._height = ' style="height:%dpx"' % option[ 'height'] if 'height' in option else ''
def __init__(self, *heads, **option): __View__.__init__(self, 'table', heads=L(*heads), recs=L(), _stripe=option['stripe'] if 'stripe' in option else False, _link=self.__create_link__(option['link']) if 'link' in option else '' ) self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
def __init__(self, *heads, **option): __View__.__init__( self, 'table', heads=L(*heads), recs=L(), _stripe=option['stripe'] if 'stripe' in option else False, _link=self.__create_link__(option['link']) if 'link' in option else '') self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option[ 'title'] if 'title' in option else ''
def __init__(self, title, view, panel='default', icon='fa-archive', link=None): __View__.__init__(self, 'panel', view=view) self._title = title self._panel = panel self._icon = icon self._link = self.__create_link__(link)
def __init__(self, *lines, **option): __View__.__init__(self, 'ctst_slide', lines=L(*lines), opts=M(seriesBarDistance=5), labels=L(), series=L(), size=5, anima=False) if len(self.lines) > 0: for l in self.lines: self.series << L() self.add = self.__addMapped__ else: self.add = self.__addLinear__ self.opts['distributeSeries'] = True self._link = self.__create_link__(option['link']) if 'link' in option else '' self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else '' if 'height' in option: self.opts['height'] = str(option['height']) + 'px'
def __init__(self, chart_name, *lines, **option): __View__.__init__(self, chart_name, lines=L(*lines), opts=M(), data=L()) if len(self.lines) == 0: self.lines << 'Data' self._link = self.__create_link__( option['link']) if 'link' in option else '' self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option[ 'title'] if 'title' in option else '' self._height = ' style="height:%dpx"' % option[ 'height'] if 'height' in option else ''
def __init__(self, title, msg='', panel='default', icon='fa-info-circle', link=None): __View__.__init__(self, 'infonoti', title=title, msg=msg, panel=panel, icon=icon, link=self.__create_link__(link))
def __init__(self, value, min=0, max=100, **option): __View__.__init__(self, 'justgage', value=value, min=min, max=max, opts=M()) if 'desc' in option: self.opts['title'] = option['desc'] self._link = self.__create_link__( option['link']) if 'link' in option else '' self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option[ 'title'] if 'title' in option else '' self._height = ' style="height:%dpx;"' % option[ 'height'] if 'height' in option else ''
def __init__(self, title, count, desc='', panel='default', icon='fa-info-circle', link=None): __View__.__init__(self, 'infopanel', title=title, count=count, desc=desc, panel=panel, icon=icon, link=self.__create_link__(link))
def __init__(self, *lines, **option): __View__.__init__( self, "ctst_slide", lines=L(*lines), opts=M(seriesBarDistance=5), labels=L(), series=L(), size=5, anima=False, ) if len(self.lines) > 0: for l in self.lines: self.series << L() self.add = self.__addMapped__ else: self.add = self.__addLinear__ self.opts["distributeSeries"] = True self._link = self.__create_link__(option["link"]) if "link" in option else "" self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option["title"] if "title" in option else "" if "height" in option: self.opts["height"] = str(option["height"]) + "px"
def __init__(self, value, min=0, max=100, **option): __View__.__init__(self, 'justgage', value=value, min=min, max=max, opts=M()) if 'desc' in option: self.opts['title'] = option['desc'] self._link = self.__create_link__(option['link']) if 'link' in option else '' self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else '' self._height = ' style="height:%dpx;"' % option['height'] if 'height' in option else ''
def __init__(self, **option): __View__.__init__(self, "ctst_donut", opts=M(donutWidth="100%"), labels=L(), series=L()) self._link = self.__create_link__(option["link"]) if "link" in option else "" self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option["title"] if "title" in option else "" if "height" in option: self.opts["height"] = str(option["height"]) + "px"
def __init__(self, *cols, **option): __View__.__init__(self, 'layout_row', cols=L()) for col in cols: if instof(col, Col): self.cols << col else: self.cols << Col(col)
def __init__(self, init_scr='', init_loc='', init_cmd='', line_cnt=200): __View__.__init__(self, 'terminal', command=init_cmd) self.setScreen(init_scr) self.setLocation(init_loc) self.line_cnt = line_cnt
def __init__(self, msg): __View__.__init__(self, 'error', doc=msg)
def __init__(self, title, msg='', icon='fa-info-circle', link=None): __View__.__init__(self, 'infoblock', title=title, msg=msg, icon=icon) self._link = self.__create_link__(link)
def __init__(self, *rows, **option): __View__.__init__(self, 'layout', rows=L(*rows)) self._border = ' style="border: %dpx solid %s;"' % ( option['border'][0], option['border'][1]) if 'border' in option else ''
def __init__(self, submit, **kargs): __View__.__init__(self, 'form', **kargs) self._submit = submit self._order = L()
def __init__(self, text, link=None, height=None): __View__.__init__(self, 'text', text=text) self._link = self.__create_link__(link)
def __init__(self, doc, link=None): __View__.__init__(self, 'infodoc', doc=doc) self._link = self.__create_link__(link)
def __init__(self, **option): __View__.__init__(self, 'morr_donut', data=L()) self._link = self.__create_link__(option['link']) if 'link' in option else '' self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else '' self._height = ' style="height:%dpx"' % option['height'] if 'height' in option else ''
def __init__(self): __View__.__init__(self, 'hlist', item=L())
def __init__(self, html): __View__.__init__(self, 'html', html=html)
def __init__(self): __View__.__init__(self, 'empty')
def __init__(self, **option): __View__.__init__(self, 'ctst_donut', opts=M(donutWidth='100%'), labels=L(), series=L()) self._link = self.__create_link__(option['link']) if 'link' in option else '' self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else '' if 'height' in option: self.opts['height'] = str(option['height']) + 'px'
def __init__(self, *rows, **option): __View__.__init__(self, 'layout', rows=L(*rows)) self._border = ' style="border: %dpx solid %s;"' % (option['border'][0], option['border'][1]) if 'border' in option else ''
def __init__(self, view, link=None): __View__.__init__(self, 'plain', view=view) self._link = self.__create_link__(link)
def __init__(self, chart_name, *lines, **option): __View__.__init__(self, chart_name, lines=L(*lines), opts=M(), data=L()) if len(self.lines) == 0: self.lines << 'Data' self._link = self.__create_link__(option['link']) if 'link' in option else '' self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else '' self._height = ' style="height:%dpx"' % option['height'] if 'height' in option else ''
def __init__(self, *lines, **option): __View__.__init__(self, 'ctst_area', lines=L(*lines), opts=M(), labels=L(), series=L(), anima=False) for l in self.lines: self.series << L() self._link = self.__create_link__(option['link']) if 'link' in option else '' self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else '' if 'height' in option: self.opts['height'] = str(option['height']) + 'px'