Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DDA
dda-wizard
Commits
aa2111c6
Commit
aa2111c6
authored
Aug 09, 2016
by
Hellmich, Christoph
Browse files
Add element hide function
parent
61ee581d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/scripts/app/wizardEditor/wizardEditor.controller.js
View file @
aa2111c6
...
...
@@ -25,10 +25,11 @@ angular.module('ddaApp')
},
{
'
fieldName
'
:
'
simpleConditional
'
,
'
category
'
:
'
- Development -
'
,
'
category
'
:
'
Wizard
'
,
'
fieldOptions
'
:
{
'
displayName
'
:
'
Conditional
'
,
'
hidden
'
:
true
'
hidden
'
:
false
,
'
nolabel
'
:
false
}
},
// {
...
...
src/main/webapp/scripts/components/wizardEditor/simpleConditional/simpleConditional-properties.ng.html
View file @
aa2111c6
...
...
@@ -20,7 +20,7 @@
<div
fg-property-field=
"fieldHidden"
fg-property-field-label=
""
>
<div
class=
"checkbox"
>
<label
title=
"Set the initial value of this field."
>
<input
type=
"checkbox"
name=
"fieldHidden"
ng-model=
"field.hidden"
/>
<input
type=
"checkbox"
name=
"fieldHidden"
ng-model=
"field.hidden"
ng-change=
"field.nolabel=field.hidden"
/>
Hide element in form preview
</label>
</div>
...
...
src/main/webapp/scripts/components/wizardEditor/simpleConditional/simpleConditional-template.ng.html
View file @
aa2111c6
<div
id=
"{{ field.$_id }}"
class=
"conditional"
ng-class=
"{ 'hide
-conditio
n': field.schema.hidden }"
>
<div
id=
"{{ field.$_id }}"
class=
"conditional"
ng-class=
"{ 'hid
d
en': field.schema.hidden }"
>
<span
ng-show=
"field.schema.element.name"
>
If
<ins>
{{ field.schema.element.name }}
</ins>
has value
...
...
@@ -8,7 +8,7 @@
<span
ng-show=
"field.schema.nextStep.name"
>
go to
<ins>
{{ field.schema.nextStep.name }}
</ins>
</span>
<span
ng-show=
"!field.schema.hidden"
>
|
<!--
<span ng-show="!field.schema.hidden">|
<i class="fa fa-eye"></i>
</span>
</span>
-->
</div>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment