Lines Matching refs:variable

4 …o be transferred between multiple levels. They do not involve passing a variable from component to…
7variable exists in the ancestor component and is said to be "provided" to descendent components. A…
20variable becomes available to all descendent components of the providing component automatically. …
22 …ate variable by decorating a variable with \@Consume. This establishes a two-way data synchronizat…
24 …d \@Consume can be bound using the same variable name or variable alias. Whenever possible, use th…
28 // Binding through the same variable name
32 // Binding through the same variable alias
38 When \@Provide and \@Consume are bound through the same variable name or variable alias, the variab…
47 …specified, the variable is provided under the alias name only. If the alias is not specified, the
48 | Synchronization type | Two-way:<br>from the \@Provide decorated variable to all \@Consum…
49 | Allowed variable types | Object, class, string, number, Boolean, enum, and array of these typ…
50 | Initial value for the decorated variable | Mandatory. |
55 …lias name is used for matching with the \@Provide decorated variable. Otherwise, the variable name…
56 | Synchronization type | Two-way: from the \@Provide decorated variable to all \@Consume d…
57variable types | Object, class, string, number, Boolean, enum, and array of these types.<br>Da…
58 | Initial value for the decorated variable | Initialization of the decorated variables is forbi…
66variable can be initialized from a regular variable (whose change does not trigger UI refresh) or …
67 …e used to initialize an \@State, \@Link, \@Prop, or \@Provide decorated variable in the child comp…
81 …rent component | Forbidden. Initialized from the \@Provide decorated variable with the same nam…
82 …e used to initialize an \@State, \@Link, \@Prop, or \@Provide decorated variable in the child comp…
83 | Synchronization with the ancestor component | Two-way with the @Provide decorated variable
98 - When the decorated variable is of the Boolean, string, or number type, its value change can be ob…
100 - When the decorated variable is of the class or Object type, its value change and value changes of…
102 - When the decorated variable is of the array type, the addition, deletion, and updates of array it…
104 - When the decorated variable is of the Date type, the overall value assignment of the Date object …
159 - When the decorated variable is **Map**, value changes of **Map** can be observed. In addition, yo…
161 - When the decorated variable is **Set**, value changes of **Set** can be observed. In addition, yo…
166 …1. The \@Provide decorated variable is passed to all child components of the owning component in m…
167variable is used in a child component, the system checks the map for a matching \@Provide decorate…
168variable is similar to that of initializing the @State/@Link decorated variable. The @Consume deco…
170 2. When the \@Provide decorated variable is updated:
171 …mentid**) and state variable (\@Consume) that depend on the \@Provide decorated variable, with whi…
172variable is updated in all owning child components, all system components (**elementId**) that dep…
174 3. When the \@Consume decorated variable is updated:
176 …r procedure, the \@Consume decorated variable holds an instance of \@Provide. After the \@Consume …
195 …@Consume can be initialized only by matching the corresponding \@Provide variable based on the key.
265variable of the corresponding key when initializing the \@Consume variable, the framework throws a…
337 …// The @Consume decorated variable is bound to the @Provide decorated variable in its ancestor com…
370 // @Provide decorated variable reviewVotes is provided by the entry component CompA.
389 In this example, the **message** variable is of the Map<number, string> type. After the button is c…
449 In this example, the **message** variable is of the Set\<number\> type. After the button is clicked…
507 …// The @Consume decorated variable is bound to the @Provide decorated variable in its ancestor com…
532 …// The @Provide decorated variable count of the union type is provided by the entry component Ance…
547 **allowOverride** allows you to override an existing \@Provide decorated variable.
555variable, use this parameter to override the existing variable with the same name (if any) in the …
567 …// The @Consume decorated variable is bound to the @Provide decorated variable in its ancestor com…
616 - The **@Provide("reviewVotes") reviewVotes: number = 40** variable is declared in **GrandParent**.
617 … 40** variable of **GrandParent**. If **allowOverride** is not declared, a runtime error is thrown…
618 - The @Consume decorated variable of **GrandSon** is initialized from the @Provide decorated variab…
619variable with the same attribute name. Therefore, the initial value of **@Consume("reviewVotes") r…
620 - If no such a variable is found when **GrandSon** has reached the root node, an error is thrown to…
627 …ld**, **this** points to **HomePage**. As such, the \@Provide decorated variable of **CustomWidget…
748 In the **build** method, when the variable decorated by @Provide and @Consume is of the object type…
842 …*this.dog** to re-render the UI by assigning a value to the variable and then calling the variable.