F4IF / ctree-demo

Collaboration Tree - A community discussion platform built for maximum insight with minimum oversight.
http://demo.ctree.org
Other
37 stars 21 forks source link

Use template stamping for procedurally created elements #41

Open CSchmitz81 opened 7 years ago

CSchmitz81 commented 7 years ago

The ctree-description class makes heavy usage of procedural element creation, including setting values and adding listeners. By using templantes to stamp out elements data binding can be used instead. It should also be assumed that even if the + buttons are still only using paper-icon-button they will eventually also need a template and stamp, which means alternating between different templates will be needed. Using a template and stamp may also be better than the current code to procedurally create and manage listeners for segment containers.