Comments (5)
This syntax (binding) will work for sure:
<SegmentedBar row="1" colspan="3" class="toggles"
(selectedIndexChanged)="filter()" selectedBackgroundColor="#B76769"
[items]="[{title: 'All'}, {title: 'Active'}]">
</SegmentedBar>
I opened a new issue related to supporting child <SegmentedBarItem>
tags.
from nativescript-angular.
I'm having trouble getting the SegmentedBar to render with a static list of items in markup. If I have...
<SegmentedBar row="1" colspan="3" class="toggles" (selectedIndexChanged)="filter()" selectedBackgroundColor="#B76769">
<SegmentedBar.items>
<SegmentedBarItem title="All"></SegmentedBarItem>
<SegmentedBarItem title="Active" completed="false"></SegmentedBarItem>
<SegmentedBarItem title="Done" completed="true"></SegmentedBarItem>
</SegmentedBar.items>
</SegmentedBar>
...shouldn't that display a SegmentedBar? Is there a way to do it differently in Angular 2?
from nativescript-angular.
This is using the following dependencies btw:
"angular2": "2.0.0-beta.3",
"nativescript-angular": "0.0.31",
"parse5": "1.4.2",
"punycode": "1.3.2",
"querystring": "0.2.0",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.0",
"tns-core-modules": "1.6.0-angular-5",
"zone.js": "0.5.11"
Which is the latest of what is being used here:
https://github.com/NativeScript/qsf-angular-nativescript/blob/master/package.json#L33-L42
from nativescript-angular.
I tried this binding:
<SegmentedBar [items]="supportedLanguages"></SegmentedBar>
and it worked just fine. I think the moustache binding is meant to be used only for HTML text nodes (it returns a string value, which won't work with the segmented bar). Since NativeScript has no text nodes, I'd advise against using those bindings.
from nativescript-angular.
Ah yes of course thanks!!!
from nativescript-angular.
Related Issues (20)
- Livesync doesnt work with two android emulator
- ngFor broken in child components with delayed initialization HOT 1
- [Android] Keyboard overlap content when router in use
- ERROR NullInjectorError: R3InjectorError(AppModule)[Page -> Page -> Page]: HOT 7
- Question - Showing an nativescript angular app in a angular website HOT 4
- Nativescript/Angular app UI is freezing HOT 5
- Angular 12 migration leads to huge amounts of Change Detection cycles HOT 1
- Nativescript iOS & Android runtime issue module not found
- (android) Navigation does not work when the app is started while the device is locked HOT 4
- Cannot read property 'call' of undefined
- iOS 15 status bar issue HOT 1
- [Element] is not a known element HOT 1
- [iOS] Issue while opening dialogs inside a modal
- Error on run blank Angular project HOT 2
- Android : ModalDialogOptions in Nativescript/Angular fails and throws an exception
- Wrapping a spec in fakeAsync results in ProxyZone error on a new app HOT 2
- Generate component does not add automatically to module
- bottom navigation bar nativescript
- Error: Need to call TestBed.initTestEnvironment() first
- FontAwesome 6 icons not showing HOT 1
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 nativescript-angular.