JSON command parameters in behaviors?
Is there a way to specify a parameter for a command within behaviors? I'd like to use a command that requires a parameter in the following:
"behaviors": [
{
"name": "ResultsListFeatureClickedBehavior",
"event": "ResultsListFeatureClickedEvent",
"commands": [
"ShowFeatureDetailsExpanded"
]
}
]
- Batches don't seem to work for behavior.
- I then tried adding an object with a command name and command parameter. Not surpsing this doesn't work, as the HTML SDK reference shows that commands only takes an array of strings.
0
-
Apparently you cannot really use commands with parameters in a behavior, expect for special circumstances. You can add commands to a behavior <u><b>if the command does not require a parameter</b></u>, or if the type of the command's parameter matches the parameter of an existing command or the event associated with the behavior.Geocortex Viewer HTML Admin & Dev Guide - Page 182.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar