Implement a couple missing bits
This commit is contained in:
parent
c5ab005908
commit
bf39791f01
8 changed files with 81 additions and 24 deletions
|
@ -9,11 +9,20 @@ export class TabsSelectorModel {
|
|||
}
|
||||
}
|
||||
|
||||
export interface LinkActionsModelOpts {
|
||||
newTab?: boolean
|
||||
}
|
||||
export class LinkActionsModel {
|
||||
name = 'link-actions'
|
||||
newTab: boolean
|
||||
|
||||
constructor(public href: string, public title: string) {
|
||||
constructor(
|
||||
public href: string,
|
||||
public title: string,
|
||||
opts?: LinkActionsModelOpts,
|
||||
) {
|
||||
makeAutoObservable(this)
|
||||
this.newTab = typeof opts?.newTab === 'boolean' ? opts.newTab : true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue