Conditional formatting | 您所在的位置:网站首页 › 苹果电脑系统崩溃了如何重装系统 › Conditional formatting |
Conditional formatting This core reference entry is suited for beginner-level builders. To learn about this topic more in-depth, we recommend reading the suggested articles below: Conditional expressions and formattingDynamic expressions Dynamic expressions are formulas used to create conditions. Conditions How to use dynamic expressions to set up conditions. DesignArticle series focusing on design in general, explaining terminology and offering resources to help you set up a user-friendly, good looking design. Article series: Design Article: Responsive design Building pages that work on all devices, such as a laptop and a phone. The design tab In this article we cover the different tools available in the design tab. Article: ´The design tab Article: The element inspector The tool you use to set responsive properties. Elements In this article series, we cover how to work with different element types: Article series: Elements Article series: The element hierarchy Article: The page Article series: Container elements (elements that contain other elements) Article: Visual elements (elements like text, buttons, icons and images) Article series: Input forms (elements that accept input, such as text and file uploads) Previewing your app In this section about how to in the development environment. Article: Previewing your app Bubble Academy: Element videos (list of videos related to elements) ConditionsYou can control how page elements behave and appear under certain circumstances. Define these conditions and the properties to be altered in the Conditional Formatting section in the Property Editor. States are applied in the order listed. If two states are active and modify the same property, the state listed last is the one used. Note: With conditionals, you can create your own input validation, e.g. "This button should not be clickable until the input is at least 3 characters long". Some of these validations are not evaluated on each keystroke, but rather after the user pauses for a second. WhenA condition defines when the properties should change. A condition can be about the element itself, e.g., when a button is hovered or clicked or be based on a more complex expression, such as when the user is logged in. Build this expression one condition at a time. As this condition should return yes or no, it will be red until the condition is valid. Select a property to change when trueSelect which properties to modify from this dropdown menu when the element meets the condition. Move upClicking this button moves the condition up by one. The condition originally above the current condition will be moved down one. Move downClicking this moves the condition down by one. The condition originally below the current condition will be moved up by one. Remove conditionClicking this removes the condition from the current element. On/OffThis button turns the condition on or off in the editor, so that you can preview what different states of the condition look like. The default is off. Can have the slug valueThis operation tests if the argument is a valid slug value for the Thing. A valid slug value is both unique and correctly formatted with only lowercase letters, digits, and hyphens. Cannot have the slug valueThis operation tests if the argument is an invalid slug value for the Thing. An invalid slug value is anything that isn’t made up of only lowercase letters, digits, and hyphens or that is not unique. TransitionsFor a smoother effect, transitions change an element's properties over time. For example, define a transition so the background color changes over 500 milliseconds. When the color changes, the element's color will change gradually over 500 milliseconds instead of at one time. Note: Transitions are not applied to gradient backgrounds. DurationLength of the transition in milliseconds. Transition timing dropdownThis parameter determines how the intermediate values of the transition are calculated. Choose from several curves. Select a property to define a new transitionFrom the dropdown menu, select the property to apply the transition to. Remove the transitionClick the trash icon to remove the transition. The property will change instantaneously instead of gradually. Other ways to learnUser manual articlesDynamic expressionsTo set up conditions, you'll need to know your way around dynamic expressions. The article below covers this topic in-depth: Article: Dynamic expressions ConditionsIf you'd like a more extensive tutorial on how conditions work, you may also be interested in reading the user manual article below: Article: Conditions Video lessonsHow to build expressions Last updated 2 months ago |
CopyRight 2018-2019 实验室设备网 版权所有 |