-
Notifications
You must be signed in to change notification settings - Fork 137
CaseAnimation
CaseAnimation (inherits SelectionAnimation)
The CaseAnimation is used as a control structure to play a specific child animation depending on the result of executing the selectScript, which should return the index of the child animation to play (this is similar to the case or select statements in C#/VB, etc.). If the provided index is outside the bounds of the child animations array (or if nothing was returned) then we will not play anything.
Name | Description |
---|---|
selectScript | JavaScript that should evaluate to the index of the appropriate child animation to play. If this returns an index outside the bounds of the child animations array, then nothing is played. |
Name | Description |
---|---|
constructor(target, duration, fps, animations, selectScript) | |
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 the index of the appropriate child animation to play. If this returns an index outside the bounds of the child animations array, then nothing is played.
Getter name: get_selectScript()
Setter name: set_selectScript(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.
-
selectScript
- Type: Object
- Description: JavaScript that should evaluate to the index of the appropriate child animation to play. If this returns an index outside the bounds of the child animations array, then nothing is played.
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