Table of Contents

Class: Element ./src/peak/web/templates.py
Base Classes   
binding.Component
Methods   
_traverse
addChild
addParameter
optimizedChildren
renderFor
staticText
  _traverse 
_traverse (
        self,
        data,
        state,
        )

  addChild 
addChild ( self,  node )

Add node (an IDOMletNode) to element's direct children

Exceptions   
TypeError( "Attempt to add child after rendering", self, node )
  addParameter 
addParameter (
        self,
        name,
        element,
        )

Declare element as part of parameter name

Exceptions   
SyntaxError( "Multiple definitions for parameter: %r" % name )
SyntaxError( "Unrecognized parameter: %r" % name )
  optimizedChildren 
optimizedChildren ( self )

Child nodes with as many separate text nodes combined as possible

  renderFor 
renderFor (
        self,
        data,
        state,
        )

  staticText 
staticText ( self )

Note: replace w/staticText = None in dynamic element subclasses


Table of Contents

This document was automatically generated on Mon Nov 11 01:11:04 2024 by HappyDoc version 2.1