mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Spell mistake on Docs isEanbled to isEnabled
This commit is contained in:
@ -7,12 +7,12 @@ previous_url: /ApiReference/ui/switch/HOW-TO
|
||||
# Switch
|
||||
Using a switch requires the Switch module.
|
||||
<snippet id='article-require-switch'/>
|
||||
### Binding the Switch checked property and Button isEanbled property to a observable view-model property.
|
||||
### Binding the Switch checked property and Button isEnabled property to a observable view-model property.
|
||||
``` XML
|
||||
<Page loaded="pageLoaded">
|
||||
<StackLayout orientation="vertical">
|
||||
{%raw%}<Switch checked="{{ someProperty }}" />
|
||||
<Button isEanbled="{{ someProperty }}" text="This is a Button!" />{%endraw%}
|
||||
<Button isEnabled="{{ someProperty }}" text="This is a Button!" />{%endraw%}
|
||||
</StackLayout>
|
||||
</Page>
|
||||
```
|
||||
|
Reference in New Issue
Block a user