Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iTasks-SDK
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
73
Issues
73
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
iTasks-SDK
Commits
da9778df
Commit
da9778df
authored
Aug 30, 2016
by
Bas Lijnse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for customised css styles specified as UI attribute
parent
e3da426a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
Client/itasks-core.js
Client/itasks-core.js
+3
-1
Server/iTasks/UI/Definition.dcl
Server/iTasks/UI/Definition.dcl
+1
-0
Server/iTasks/UI/Definition.icl
Server/iTasks/UI/Definition.icl
+3
-0
No files found.
Client/itasks-core.js
View file @
da9778df
...
...
@@ -65,7 +65,9 @@ itasks.Component = {
//Style the dom element
me
.
domEl
.
classList
.
add
(
me
.
cssPrefix
+
me
.
cssCls
);
if
(
me
.
style
)
{
me
.
domEl
.
style
=
me
.
style
;
}
//Custom initialization after the dom element has been rendered
me
.
initDOMEl
();
//Size the element
...
...
Server/iTasks/UI/Definition.dcl
View file @
da9778df
...
...
@@ -222,6 +222,7 @@ actionIdAttr :: !String -> UIAttributes
editorIdAttr
::
!
String
->
UIAttributes
taskIdAttr
::
!
String
->
UIAttributes
labelAttr
::
!
String
->
UIAttributes
styleAttr
::
!
String
->
UIAttributes
editAttrs
::
!
String
!
String
!(
Maybe
JSONNode
)
->
UIAttributes
choiceAttrs
::
!
String
!
String
![
Int
]
![
JSONNode
]
->
UIAttributes
...
...
Server/iTasks/UI/Definition.icl
View file @
da9778df
...
...
@@ -192,6 +192,9 @@ editorIdAttr taskId = 'DM'.fromList [("editorId",JSONString taskId)]
labelAttr
::
!
String
->
UIAttributes
labelAttr
taskId
=
'
DM
'.
fromList
[(
LABEL_ATTRIBUTE
,
JSONString
taskId
)]
styleAttr
::
!
String
->
UIAttributes
styleAttr
style
=
'
DM
'.
fromList
[(
"style"
,
JSONString
style
)]
editAttrs
::
!
String
!
String
!(
Maybe
JSONNode
)
->
UIAttributes
editAttrs
taskId
editorId
mbValue
=
'
DM
'.
fromList
[(
"taskId"
,
JSONString
taskId
),(
"editorId"
,
JSONString
editorId
):
maybe
[]
(\
value
->
[(
"value"
,
value
)])
mbValue
]
...
...
Write
Preview
Markdown
is supported
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