docs-v7 icon indicating copy to clipboard operation
docs-v7 copied to clipboard

Markdown problems with firefox

Open kaanguru opened this issue 5 years ago • 1 comments

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: <Page> <ActionBar> <ActionItem text="Immediate" android.position="popup" @tap="onImmediateTap"></ActionItem> <ActionItem text="OnLostFocus" android.position="popup" @tap="onOnLostFocusTap"></ActionItem> <ActionItem text="Manual" android.position="popup" @tap="onManualTap"></ActionItem> </ActionBar> <StackLayout> <RadDataForm ref="dataform" :source="person" :metadata="personMetadata" :validationMode="validationMode" commitMode="Manual"> </RadDataForm> <Button text="Validate manually" horizontalAlignment="stretch" @tap="onValidateTap()"></Button> </StackLayout> </Page> , 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}); }); }, } };

kaanguru avatar May 11 '20 12:05 kaanguru

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign the CLA at https://www.nativescript.org/cla. CLA has not been signed by users: @kaanguru. After signing the CLA, you can ask me to recheck this PR by posting @cla-bot check as a comment to the PR.

cla-bot[bot] avatar May 11 '20 12:05 cla-bot[bot]