Comments (5)
Ah also for that example to be meaningful, there needs to be actual content e.g.: button1.text = "Button 1"; label1.text = "Label 1";
from docs-v7.
Sorry - the broken example is the one at https://www.nativescript.org/blog/details/demystifying-nativescript-layouts . The HOW-TO example is fine.
Its mistake is to say "gridLayout.setColumn" where it should be "layout.GridLayout.setColumn".
With this fix, got it working!
If anything is not working perfectly I'd post it separately here, otherwise can be closed in 7 days.
A final question here is, why do you use static classes for assignment like this - I mean, why not just do it within the instance?
Thanks :)
from docs-v7.
@mike-ense, thank you for noting the broken example. I need to update that post. I think what I state about 'Border' is out of date as well.
from docs-v7.
I have updated the article on layouts. Thanks for letting me know about it
from docs-v7.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from docs-v7.
Related Issues (20)
- The 'isPassThroughParentEnabled' property doesn't seem to work as intended
- Add the possibility to select the documentation version through a drop-down menu HOT 4
- Improve this repository issue template HOT 2
- NativeScript image builder disapear. HOT 2
- JAVA_HOME variable setup script on linux not compatible with Java-14
- Grammar error in documentation
- Trying to update ns-cookboock but can not find it in repo, nor any documentation that refer to it
- Redo Contributors list
- Date stamp Docs HOT 1
- 3 dead links in https://github.com/NativeScript/docs/blob/master/docs/core-concepts/technical-overview.md
- Outdated doc page: CommonJS in NS apps
- Get Started / CLI Basics - Creating Application HOT 2
- bug: random duplicate instances of elements in API Reference
- Missing Plugin-Reference.md
- Links from search results from search bar in v6 and v7 doc sites are broken HOT 2
- Blog links are not redirecting correctly HOT 4
- [Accessibility] Frameworks icons looks interactive but they are not?
- v8 is missing the majority of v7 topics
- Please document how I can setup a custom font from /src/fonts in a webview
- Wrong import
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs-v7.