ericabouaf / wireit

A javascript wiring library to create web wirable interfaces for dataflow applications, visual programming languages or graphical modeling.
http://neyric.github.io/wireit/docs/
Other
520 stars 90 forks source link

Allow custom class on modules #26

Closed DerManoMann closed 12 years ago

DerManoMann commented 14 years ago

I am working on an app that uses jsBox as basis. We do have different types of modules and it would be very helpful if the left hand side could: a) Allow custom CSS - perhaps composed from a new property on the module passed into addModuleToList() b) Sort/group modules by type

EDIT: For the custom class I ended up doing something like this in addModuleToList(): var div = WireIt.cn('div', {className: "WiringEditor-module WiringEditor-module-"+module.container.xtype.replace(/WireIt./, '')});

cheers, mano