-
Notifications
You must be signed in to change notification settings - Fork 137
ConditionAnimation
- Animation
ConditionAnimation (inherits SelectionAnimation)
The ConditionAnimation is used as a control structure to play a specific child animation depending on the result of executing the conditionScript. If the conditionScript evaluates to true, the first child animation is played. If it evaluates to false, the second child animation is played (although nothing is played if a second animation is not present).
Name | Description |
---|---|
conditionScript | JavaScript that should evaluate to true or false to determine which child animation to play. |
Name | Description |
---|---|
constructor(target, duration, fps, animations, conditionScript) | |
getSelectedIndex() | Get the index of the animation that is selected to be played. If this returns an index outside the bounds of the child animations array, then nothing is played. |
JavaScript that should evaluate to true or false to determine which child animation to play.
Getter name: get_conditionScript()
Setter name: set_conditionScript(value)
Params:
-
target
- Type: Object
- Description: Target of the animation.
-
duration
- Type: Number
- Description: Length of the animation in seconds. The default is 1.
-
fps
- Type: Number
- Description: Number of steps per second. The default is 25.
-
animations
- Type: Object
- Description: Array of child animations to be played.
-
conditionScript
- Type: Object
- Description: JavaScript that should evaluate to true or false to determine which child animation to play.
Get the index of the animation that is selected to be played. If this returns an index outside the bounds of the child animations array, then nothing is played.
This content was moved from https://ajaxcontroltoolkit.codeplex.com/documentation to this Documentation wiki. This is now the authoritative location of the AJAX Control Toolkit documentation.
- Step-by-Step Installation Guide
- Upgrading from v7.x and below
- Uninstalling the AJAX Control Toolkit
- Troubleshooting Installer Issues
- Updating the Project from CI Builds
- How to Use Bundling and CDN
- Creating a Custom Localization
- Creating a Custom Control
- Design Standards
Controls:
- Accordion
- AjaxFileUpload
- AreaChart
- AsyncFileUpload
- BarChart
- BubbleChart
- ComboBox
- Editor (deprecated)
- Gravatar
- LineChart
- NoBot
- PieChart
- Rating
- ReorderList
- Seadragon
- TabContainer
- TabPanel
Extenders:
- AlwaysVisibleControl
- Animation
- AutoComplete
- BalloonPopup
- Calendar
- CascadingDropDown
- CollapsiblePanel
- ColorPicker
- ConfirmButton
- DragPanel
- DropDown
- DropShadow
- DynamicPopulate
- FilteredTextBox
- HoverMenu
- HtmlEditor
- ListSearch
- MaskedEdit
- MaskedEditValidator
- ModalPopup
- MultiHandleSlider
- MutuallyExclusiveCheckBox
- NumericUpDown
- PagingBulletedList
- PasswordStrength
- PopupControl
- ResizableControl
- RoundedCorners
- Slider
- SlideShow
- TextBoxWatermark
- ToggleButton
- UpdatePanelAnimation
- ValidatorCallout