Work Breakdown Tool #146
Replies: 6 comments
|
One obvious alternative would be to pass the constructed string you want to display as If it comes to styling of a row, depending on the node's type, I would rather send a |
|
Thank you both for your prompt responses. I am going with Martin's suggestion to KeepItSimpleStupid, and manually put the type and name together to form the title. If I need type specific behaviour later, I'll rethink. |
|
FREENAYT's suggestion to style cells based on status leads me to my next comments, which are primarily about styling of nodes based on Node states. I am intending to use the clone features (key (unique id) and refKey). A node belongs to a set of clones all of which have the same refKey. One node's key will be equal to the refKey, and that node I call a "Master". All the other members of the clone set I call "Slaves". All the data values are processed on the Master node, with the data values being visible also through the slaves. Slaves cannot be edited, nor do they have children. My code has different behaviour depending on the state of the nodes, and I want to reflect that state with the node and icon styles. I am not sure how best to achieve this, but I think adding and removing css classes on the wb-node div would give the desired effect. I have four significant status values: isMaster A node's cells can only be edited if the node isMaster and isLeaf, and I plan to use just 2 icons to reflect whether a node is editable or not. I hope this makes sense. I don't really expect any comments at this stage, unless the use of adding and removing classes on the node div is not going to work because its private to WB. |
|
I am making good progress in teaching myself JS and implementing my interactive Work/Cost Breakdown tool using The wonderful Wunderbaum treeGrid. Incidentally what is the difference between selected and active, and does it matter? |
|
Hello Martin and others. I am having some difficulty with event types and typescript, and I would welcome advice on how to proceed. I have copied code examples from the "edit" page in the documentation - for example the "edit" and "apply" event functions. When I run this copied code in a JS file, it all runs OK. But when I transpile in a TS file, I get complaints that fields dont exist on high level event types. I am guessing I need to import some of the lower level event types and declare the parameters to be lower level types. I have temporarily declared the parameters on the event functions to be "any", but this is not in the spirit of using typescript. So my question is: Can the code examples be more specific about event type declarations expected, and how do I know which types I need, and how do I import them. Sorry if this a naive novice question. Thanks in advance Gordon Jones |

Uh oh!
There was an error while loading. Please reload this page.
I have a plan/hobby to try to configure Wunderbaum as a project breakdown tool to help with estimating project costs. Project Management is a use case that is hinted at in some of the Wunderbaum online examples. The combination of the tree for work breakdowns and the grid for simple spreadsheet functionality fits that usage really well.
I have hit some issues/difficulties, and I hope I can use this discussion forum to get suggestions as to how to overcome them.
The first is that I would like to render a node's first column as "expander + node.type + node.title." I have tried various approaches to try to achieve this, but have failed. So the first question is can I override the render of the first column without triggering a recursive render stack overflow. I have tried using setTitle(), and setting nodeElem.innertext both in the render callback, but both end up triggering a stack overflow.
Suggestions would be welcome. both for the specific render request, but also views on whether the work breakdown is a desirable objective.
All reactions