Browse Source

refactor tips for <app-community-links>

main
familyfriendlymikey 2 years ago
parent
commit
5901270521
  1. 61
      app/components/app-community-links.imba

61
app/components/app-community-links.imba

@ -56,30 +56,43 @@ tag app-community-links
get tips get tips
let result = [] let result = []
let temp
result.push <>
<.tip temp = {
@click=close click_handler: close.bind(this)
@hotkey("esc").force=close hotkey_handler: close.bind(this)
> hotkey: "esc"
<.tip-hotkey> "Esc" hotkey_display_name: "Esc"
<.tip-content> "Exit Community Links" content: "Exit Community Links"
}
result.push <> result.push temp
<.tip
@click=add_community_link temp = {
@hotkey("shift+return").force=add_community_link click_handler: add_community_link.bind(this)
> hotkey_handler: add_community_link.bind(this)
<.tip-hotkey> "Shift + Return Or Click" hotkey: "shift+return"
<.tip-content> "Add To Your Links" hotkey_display_name: "Shift + Return Or Click"
content: "Add To Your Links"
result.push <> }
<.tip.noclick result.push temp
@hotkey('down').force=increment_selection_index
@hotkey('up').force=decrement_selection_index temp = {
> click_handler: increment_selection_index.bind(this)
<.tip-hotkey> "Up/Down Arrow" hotkey_handler: increment_selection_index.bind(this)
<.tip-content> "Move Selection" hotkey: 'down'
hotkey_display_name: "Down Arrow"
content: "Move Selection Down"
}
result.push temp
temp = {
click_handler: decrement_selection_index.bind(this)
hotkey_handler: decrement_selection_index.bind(this)
hotkey: 'up'
hotkey_display_name: "Up Arrow"
content: "Move Selection Up"
}
result.push temp
result result

Loading…
Cancel
Save