Skip to content

Commit

Permalink
Change inline link input to property
Browse files Browse the repository at this point in the history
  • Loading branch information
elycheea committed Aug 12, 2020
1 parent 86d8237 commit bb2dfd7
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions src/link/link.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export class Link {
*/
@HostBinding("attr.tabindex") tabindex;

/**
* Set to true to show links inline in a sentence or paragraph.
*/
@Input()
@HostBinding("class.bx--link--inline") inline = false;

/**
* Set to true to disable link.
*/
Expand All @@ -47,19 +53,5 @@ export class Link {
return this._disabled;
}

/**
* Set to true to inline link.
*/
@Input()
@HostBinding("class.bx--link--inline")
set inline(inline: boolean) {
this._inline = inline;
}

get inline(): boolean {
return this._inline;
}

private _disabled;
private _inline;
}

0 comments on commit bb2dfd7

Please sign in to comment.