Skip to content

Make SegmentedBarItem's usable in markup #173

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

Closed
hdeshev opened this issue Apr 12, 2016 · 2 comments
Closed

Make SegmentedBarItem's usable in markup #173

hdeshev opened this issue Apr 12, 2016 · 2 comments
Assignees

Comments

@hdeshev
Copy link
Contributor

hdeshev commented Apr 12, 2016

Add support for child tags in SegmentedBar (defining without a binding):

<SegmentedBar row="1" colspan="3" class="toggles" (selectedIndexChanged)="filter()" selectedBackgroundColor="#B76769">
    <SegmentedBarItem title="All"></SegmentedBarItem>
    <SegmentedBarItem title="Active" completed="false"></SegmentedBarItem>
    <SegmentedBarItem title="Done" completed="true"></SegmentedBarItem>
</SegmentedBar>

Related discussion: #80

@nsndeck nsndeck self-assigned this Apr 13, 2016
@nsndeck
Copy link
Contributor

nsndeck commented Apr 14, 2016

Closed with commit #179.

@nsndeck nsndeck closed this as completed Apr 14, 2016
@dotdreaming
Copy link

Can the take a [nsRouterLink]="['/second']" attribute and be used with the router (v3)?
<SegmentedBar row="1" colspan="3" class="toggles" (selectedIndexChanged)="filter()" selectedBackgroundColor="#B76769"> <SegmentedBarItem title="All" [nsRouterLink]="['/first']" ></SegmentedBarItem> <SegmentedBarItem title="Active" completed="false" [nsRouterLink]="['/second']" ></SegmentedBarItem> <SegmentedBarItem title="Done" completed="true" [nsRouterLink]="['/third']" ></SegmentedBarItem> </SegmentedBar>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants