Comments (1)
Solved it by adding a different file for Select Box as delegateSelect.js adjacent to delegate.js and then in serviceTaskDelegateProps.js registered it as
group.entries = group.entries.concat(delegateSelect(element, bpmnFactory, {
getBusinessObject: getBusinessObject,
getImplementationType: getImplementationType,
hideDelegateSelect: function(element, node) {
console.log(getImplementationType(element) !== 'class',"SELECT")
return getImplementationType(element) !== 'class';
}
}));
group.entries = group.entries.concat(delegate(element, bpmnFactory, {
getBusinessObject: getBusinessObject,
getImplementationType: getImplementationType,
hideDelegateText: function(element, node) {
console.log(getImplementationType(element) === 'class',"TEXT")
return getImplementationType(element) === 'class';
}
}));
and in respective delegate and delegateSelect handled the disabled as
disabled: function(element, node) {
if (typeof hideDelegateText === 'function') {
return hideDelegateText.apply(delegateEntry, arguments);
}
}
disabled: function(element, node) {
if (typeof hideDelegateSelect === 'function') {
return hideDelegateSelect.apply(delegateEntrySelect, arguments);
}
}
I referred the ResultVariable.js file to reach this solution
Thanks
from bpmn-js-examples.
Related Issues (20)
- Add example for creating properties panel list groups
- Unable to render custom component in Properties Panel HOT 2
- the command "npm run dev" was not available, because the node not created an acess path ,such as "http://localhost:5000", after i executed npm install and npm run dev,maybe it`s a bug. HOT 6
- Problems trying to render "custom" react components inside the Properties Panel HOT 2
- Unable to place Pool/Participant HOT 10
- Custom Properties Panel of bpmn HOT 2
- Please add keyboard bindTo: window to the modeler example HOT 1
- bpmn-properties example appears to be missing HOT 1
- Task/Bugfix: Update "diagram-js": to "^8.9.0" in `modeler` example. HOT 1
- ERESOLVE overriding peer dependency HOT 1
- Loader when compiling Spell HOT 12
- properties panel example should work without JSX HOT 6
- TypeError while trying to add a custom property to Service Tasks HOT 1
- adding new connector and draw it with 'CHANGE ELEMENT' HOT 2
- Add a more simple example HOT 4
- add listGroup to properties-panel in Camunda HOT 3
- Turn into a workspace HOT 2
- An error occurred using Viewer: No Provider for "commandStack" HOT 2
- BPMN modeler example is missing dependencies HOT 1
- Create a testing example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpmn-js-examples.