-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example usage of SegmentedBar? Having trouble with the component rendering improperly with bound items
property
#80
Comments
This is using the following dependencies btw:
Which is the latest of what is being used here: |
items
property
I tried this binding:
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. |
Ah yes of course thanks!!! |
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? |
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 |
I'm having trouble getting a Segmented Bar to render properly when bound to a property in an angular component class.
It ends up rendering like this... (am I missing something?):
The text was updated successfully, but these errors were encountered: