Skip to content

Commit

Permalink
$mol_string_link
Browse files Browse the repository at this point in the history
  • Loading branch information
nin-jin committed Sep 14, 2023
1 parent 0ad0bb1 commit 308331a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions string/link/link.view.tree
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$mol_string_link $mol_view
attr *
^
mol_string_link_editing <= editing <= enabled true
sub /
<= View $mol_link
title <= title
hint <= hint_view \
uri <= value
<= Edit $mol_string
enabled <= enabled
value? <=> value? \
hint <= hint_edit <= hint <= title \
10 changes: 10 additions & 0 deletions string/link/link.view.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace $.$$ {
export class $mol_string_link extends $.$mol_string_link {

@ $mol_mem
sub() {
return this.editing() ? [ this.Edit() ] : [ this.View() ]
}

}
}

0 comments on commit 308331a

Please sign in to comment.