mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Updated these snippets to use the new mirrors-in-fields feature!
This commit is contained in:
parent
791d866957
commit
626a8be41f
@ -4,6 +4,4 @@
|
||||
# name: Input with Label
|
||||
## condition: "text.html"
|
||||
# --
|
||||
<label for="${2:id$(yas/get-field-once 1 #'yas/html-id-from-string)}">$1</label><input type="${3:$$(yas/choose-value '("text" "submit" "hidden" "button"))}" name="${4:name$(
|
||||
yas/get-field-once 2)}" value="$5"${6: id="${7:id$(
|
||||
yas/get-field-once 2)}"}`yas/html-xhtml-attr`>
|
||||
<label for="${2:${1:$(yas/html-id-from-string yas/text)}}">${1:}</label><input type="${3:$$(yas/choose-value '("text" "submit" "hidden" "button"))}" name="${4:$2}" value="$5"${6: id="${7:$2}"}`yas/html-xhtml-attr`>
|
@ -4,8 +4,8 @@
|
||||
# name: Select Box
|
||||
## condition: "text.html"
|
||||
# --
|
||||
<select name="${1:some_name}" id="${2:id$(yas/get-field-once 1)}"${3:${4: multiple}${5: onchange="$6"}${7: size="${8:1}"}}>
|
||||
<option${9: value="${10:option1}"}>${11:$$(yas/get-field-once 10)}</option>
|
||||
<option${12: value="${13:option2}"}>${14:$$(yas/get-field-once 13)}</option>$15
|
||||
<select name="${1:some_name}" id="${2:$1}"${3:${4: multiple}${5: onchange="$6"}${7: size="${8:1}"}}>
|
||||
<option${9: value="${10:option1}"}>${11:$10}</option>
|
||||
<option${12: value="${13:option2}"}>${14:$13}</option>$15
|
||||
$0
|
||||
</select>
|
@ -3,4 +3,4 @@
|
||||
# name: Input
|
||||
## condition: "text.html"
|
||||
# --
|
||||
<input type="${1:$$(yas/choose-value '("text" "submit" "hidden" "button"))}" name="${2:some_name}" value="$3"${4: id="${5:$$(yas/get-field-once 2)}"}`yas/html-xhtml-attr`>
|
||||
<input type="${1:$$(yas/choose-value '("text" "submit" "hidden" "button"))}" name="${2:some_name}" value="$3"${4: id="${5:$2}"}`yas/html-xhtml-attr`>
|
Loading…
x
Reference in New Issue
Block a user