---
id: 160
title: 'component.Button: route config'
state: CLOSED
labels:
  - enhancement
assignees: []
createdAt: '2019-12-06T22:04:22Z'
updatedAt: '2020-03-17T20:11:13Z'
githubUrl: 'https://github.com/neomjs/neo/issues/160'
author: tobiu
commentsCount: 1
parentIssue: null
subIssues: []
subIssuesCompleted: 0
subIssuesTotal: 0
blockedBy: []
blocking: []
closedAt: '2020-03-17T20:11:13Z'
---
# component.Button: route config

Add an optional config for buttons called route.

In case the config is set, a click listener needs to get added which will call `Neo.Main.setRoute()`.

Only helpful for static routes, unless we add a @ config syntax.

## Timeline

- 2019-12-06T22:04:22Z @tobiu added the `enhancement` label
- 2020-03-17T19:51:57Z @tobiu referenced in commit `445f9b3` - "#160 route_"
- 2020-03-17T19:59:24Z @tobiu referenced in commit `300ca91` - "#160 component.Button: afterSetRoute()"
- 2020-03-17T20:10:38Z @tobiu referenced in commit `97d57ff` - "#160 component.Button: changeRoute()"
### @tobiu - 2020-03-17T20:11:13Z

done.

- 2020-03-17T20:11:13Z @tobiu closed this issue

