Markdown problems with firefox by kaanguru · Pull Request #1886 · NativeScript/docs-v7 · GitHub
Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Markdown problems with firefox#1886

Open
kaanguru wants to merge 1 commit intoNativeScript:masterfrom
kaanguru:patch-1
Open

Markdown problems with firefox#1886
kaanguru wants to merge 1 commit intoNativeScript:masterfrom
kaanguru:patch-1

Conversation

@kaanguru
Copy link
Copy Markdown

There are some Code and Syntax Highlighting problems on this page

I couldn't solve but this page needs some interest.

There is a huge text dump on the following line while using firefox.

import { DataFormValidationMode } from 'nativescript-ui-dataform';

export default { template: <ActionItem text="Immediate" android.position="popup" @tap="onImmediateTap"> <ActionItem text="OnLostFocus" android.position="popup" @tap="onOnLostFocusTap"> <ActionItem text="Manual" android.position="popup" @tap="onManualTap"> <Button text="Validate manually" horizontalAlignment="stretch" @tap="onValidateTap()"> , data () { return { text: '', validationMode: DataFormValidationMode.Immediate, person: { username: '', password: '', }, personMetadata: { 'isReadOnly': false, 'propertyAnnotations': [ { 'name': 'username', 'displayName': 'Nick', 'index': 0, 'validators': [ { 'name': 'NonEmpty' }, { 'name': 'MaximumLength', 'params': { 'length': 10 } } ] }, { 'name': 'password', 'displayName': 'Password', 'index': 2, 'validators': [ { 'name': 'NonEmpty', } ] }, ] } }; }, methods: { onImmediateTap() { this.validationMode = DataFormValidationMode.Immediate; }, onOnLostFocusTap() { this.validationMode = DataFormValidationMode.OnLostFocus; }, onManualTap() { this.validationMode = DataFormValidationMode.Manual; }, onValidateTap() { this.$refs.dataform.validateAll() .then(result => { console.log(Validation result: ${result}); }); }, } };

there are some Code and Syntax Highlighting problems on this page
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 11, 2020

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant