From wiki.ginstr.com
Jump to: navigation, search
Line 41: Line 41:
 
:; ⤷ <code>[gn:act_updateWidgetAttribute]|[@+id/progressReport20_serviceTimeStartInput,@variable/attributeName,@variable/is24HoursTime]</code>
 
:; ⤷ <code>[gn:act_updateWidgetAttribute]|[@+id/progressReport20_serviceTimeStartInput,@variable/attributeName,@variable/is24HoursTime]</code>
 
<hr>
 
<hr>
 +
 +
===List of supported attributes===
 +
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 +
|-
 +
! scope="col" | Parameter
 +
! scope="col" | Description
 +
|-
 +
| <code>[[target]]{n}</code>
 +
| [[target]] which will be shown
 +
* Valid [[target|targets]]:
 +
** [[GnTimePicker]]
 +
** [[GnDateTimePicker]]
 +
|-
 +
| <code>[[source|sourceAttributeName]]{n}</code>
 +
| [[source]] which will be used for attribute name
 +
* Valid [[source]]:
 +
** [[Datatypes#text|text]]
 +
|-
 +
| <code>[[source|sourceValue]]{n}</code>
 +
| [[source]] which will be used for attribute value
 +
* Valid [[source]]:
 +
** [[Datatypes#status|status]]
 +
|-
 +
|}

Revision as of 10:45, 22 January 2020

gn:act_updateWidgetAttribute

Description
Action used to update widget attribute.
Action returns
void

Action signatures

Update widget attribute

[gn:act_updateWidgetAttribute]|[target,sourceAttributeName,sourceValue]
Parameter Description
target{n} target which will be shown
sourceAttributeName{n} source which will be used for attribute name
sourceValue{n} source which will be used for attribute value

Example

@+id/progressReport20_serviceTimeStartInput - widget which will be updated
@variable/attributeName - attribute which will be updated
@variable/is24HoursTime - new value
[gn:act_updateWidgetAttribute]|[@+id/progressReport20_serviceTimeStartInput,@variable/attributeName,@variable/is24HoursTime]

List of supported attributes

Parameter Description
target{n} target which will be shown
sourceAttributeName{n} source which will be used for attribute name
sourceValue{n} source which will be used for attribute value