Link
Basic
<vnt-link href="http://google.com" title="Link to Google">Google</vnt-link>
Disabled
Google
<vnt-link href="http://google.com" disabled></vnt-link>
Click handler
...
methods: {
sayHi() {
window.alert('Hi!');
}
}
...
<vnt-link :click="sayHi">Say Hi!</vnt-link>
Configuration
All properties from standard HTML's <a>
link are applicable (like title
in the basic example above). The additional ones are:
click
Default: undefined
Allows to pass a function invoked once user clicks the link.
disabled
Default: false
Determines whether the link should be in disabled mode or not.
href
Default: #
Link's target URL.