-
Notifications
You must be signed in to change notification settings - Fork 0
Dump::Create Editor Dropdown
Ryan Leonard edited this page Feb 17, 2015
·
1 revision
Only creates the main trigger, the dropdown menu would have to be added later.
preview = $(".ss-formwidget-fieldpreview")
preview.children().remove()
pageBasedOnAnswer = $(".ss-formwidget-go-to-page-cb")
pageBasedOnAnswer.parent().parent().hide()
prefix = $("<div />")
prefix.addClass("goog-inline-block goog-flat-menu-button").attr
role: "listbox"
"aria-expanded": false
tabindex: "0"
"aria-haspopup": "true"
prefix.mouseover -> $(this).toggleClass("goog-flat-menu-button-hover")
prefix.mouseout -> $(this).toggleClass("goog-flat-menu-button-hover")
caption = $("<div />")
caption.addClass("goog-inline-block goog-flat-menu-button-caption").text("[True/False]").attr({
id: ":captionTest",
role: "option",
"aria-setsize": "9",
"aria-posinset": "3"
});
carret = $("<div />").html(" ").attr({
class: "goog-inline-block goog-flat-menu-button-dropdown",
"aria-hidden": "true"
});
prefix.append($("<span />").html(" Caption: ")).append(caption).append(carret)