Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 21: | Zeile 21: | ||
}, | }, | ||
"show_target_afterAction": false, | "show_target_afterAction": false, | ||
"listeners": { | |||
"beforeSubmitData": "jscb:function( data ) {\nvar dfd = $.Deferred();\n var total = 0;\n\tvar checked = 0;\n\tvar items = this.getItems();\n for( var name in data ) {\n \tif ( !name.startsWith( 'onboard_item' ) ) {\n \tcontinue;\n }\n total++;\n if ( data[name].done === true ) {\n \tchecked++;\n }\n }\ndata.progress = ( 100 * checked ) / total;\n dfd.resolve( data );\n\nreturn dfd.promise();\n \n}" | |||
}, | |||
"items": [ | "items": [ | ||
{ | |||
"name": "label-766", | |||
"widget_label": "Status", | |||
"help": "", | |||
"noLayout": true, | |||
"widget_classes": [], | |||
"showOn": [ | |||
"create", | |||
"edit", | |||
"view" | |||
], | |||
"editableOn": [ | |||
"create", | |||
"edit" | |||
], | |||
"style": "text-align: center; width: 100%;", | |||
"widget_listeners": [], | |||
"widgetCustomProps": [], | |||
"type": "label" | |||
}, | |||
{ | |||
"name": "progress", | |||
"label": "Fortschritt", | |||
"help": "", | |||
"noLayout": true, | |||
"widget_classes": [], | |||
"showOn": [ | |||
"create", | |||
"edit", | |||
"view" | |||
], | |||
"editableOn": [ | |||
"create", | |||
"edit" | |||
], | |||
"style": "width: 100%; margin-left: auto; margin-right: auto;\nmargin-bottom: 40px;", | |||
"widget_listeners": [], | |||
"widgetCustomProps": { | |||
"widget_progress": "0" | |||
}, | |||
"type": "progress_bar" | |||
}, | |||
{ | { | ||
"name": "vorname", | "name": "vorname", |
Du siehst gerade eine alte Version dieser Seite. Zurück zur letzten Version.
Dies ist die Version von 31. Januar 2023, 10:49 von Sarah Naumann